diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 02:12:33 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 02:12:33 +0000 |
commit | 19afee96c919afc4a71d17f1cef2e04da23de9a1 (patch) | |
tree | fde20cc04292f20c839655569a8b1d1d14ed6e59 /libdiskfs | |
parent | 2b101b65e6e9c83e8c99a2345be4c4cd162bb71e (diff) |
(diskfs_S_io_sigio): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-sigio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/io-sigio.c b/libdiskfs/io-sigio.c index 1b8fd0d3..229129bc 100644 --- a/libdiskfs/io-sigio.c +++ b/libdiskfs/io-sigio.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 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 @@ -29,7 +29,7 @@ diskfs_S_io_sigio (struct protid *cred) return EOPNOTSUPP; mutex_lock (&cred->po->np->lock); - if (cred->po->openstat & O_FSYNC) + if ((cred->po->openstat & O_FSYNC) || diskfs_synchronous) diskfs_file_update (cred->po->np, 1); mutex_unlock (&cred->po->np->lock); return 0; |