diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 02:00:16 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 02:00:16 +0000 |
commit | 6a063c5d39cf8635fba934d5057eb5e037475be1 (patch) | |
tree | 85d4dab4b7a5e2e545c1de076b619c9db106b935 | |
parent | 17c2ff4ecff0e121169de75e17222444b289ff8f (diff) |
(diskfs_S_file_syncfs): Implement diskfs_synchronous.
-rw-r--r-- | libdiskfs/file-syncfs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/file-syncfs.c b/libdiskfs/file-syncfs.c index 8c43e0da..88866ba9 100644 --- a/libdiskfs/file-syncfs.c +++ b/libdiskfs/file-syncfs.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs: file_syncfs - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -26,10 +26,13 @@ diskfs_S_file_syncfs (struct protid *cred, { if (!cred) return EOPNOTSUPP; - + if (dochildren) diskfs_sync_translators (wait); + if (diskfs_synchronous) + wait = 1; + diskfs_sync_everything (wait); diskfs_set_hypermetadata (wait, 0); return 0; |