summaryrefslogtreecommitdiff
path: root/libdiskfs/file-sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-sync.c')
-rw-r--r--libdiskfs/file-sync.c5
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);