diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 01:01:02 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 01:01:02 +0000 |
commit | faf6883b33737fb03437373cd93d469864409234 (patch) | |
tree | 92d5ab587c832e8339061a6bfb45ab74adc451e8 /libdiskfs | |
parent | a4fe549d9370a4fbf3ddc7fa1b5dccdad39eda71 (diff) |
(diskfs_S_file_syncfs): Use diskfs_node_iterate instead of
diskfs_sync_translators.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/file-syncfs.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libdiskfs/file-syncfs.c b/libdiskfs/file-syncfs.c index 88866ba9..5a5a6802 100644 --- a/libdiskfs/file-syncfs.c +++ b/libdiskfs/file-syncfs.c @@ -24,11 +24,25 @@ diskfs_S_file_syncfs (struct protid *cred, int wait, int dochildren) { + error_t + helper (struct node *np) + { + error_t error; + + error = fshelp_fetch_control (np, &control); + if (!error && control != MACH_PORT_NULL) + { + fsys_syncfs (control, wait, 1); + mach_port_deallocate (mach_task_self (), control); + } + return 0; + } + if (!cred) return EOPNOTSUPP; if (dochildren) - diskfs_sync_translators (wait); + diskfs_node_iterate (helper); if (diskfs_synchronous) wait = 1; |