From faf6883b33737fb03437373cd93d469864409234 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 01:01:02 +0000 Subject: (diskfs_S_file_syncfs): Use diskfs_node_iterate instead of diskfs_sync_translators. --- libdiskfs/file-syncfs.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'libdiskfs') 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; -- cgit v1.2.3