diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:59:29 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:59:29 +0000 |
commit | 17c2ff4ecff0e121169de75e17222444b289ff8f (patch) | |
tree | 8f1508d8688b539787a6e7880923bcb2bf0bedef /libdiskfs/file-sync.c | |
parent | ecc59a003f5b4b5ee78f7d9ea277eb48bc042824 (diff) |
(diskfs_S_file_sync): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs/file-sync.c')
-rw-r--r-- | libdiskfs/file-sync.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdiskfs/file-sync.c b/libdiskfs/file-sync.c index ccd9c881..01b1c194 100644 --- a/libdiskfs/file-sync.c +++ b/libdiskfs/file-sync.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs: file_seek - 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 @@ -28,6 +28,9 @@ diskfs_S_file_sync (struct protid *cred, if (!cred) return EOPNOTSUPP; + if (diskfs_synchronous) + wait = 1; + np = cred->po->np; mutex_lock (&np->lock); |