From 17c2ff4ecff0e121169de75e17222444b289ff8f Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 Mar 1995 01:59:29 +0000 Subject: (diskfs_S_file_sync): Implement diskfs_synchronous. --- libdiskfs/file-sync.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3