diff options
author | Miles Bader <miles@gnu.org> | 1996-07-28 02:11:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-28 02:11:30 +0000 |
commit | e6ddc3dbb556b65fe73bf43e80964e7595ffd9f9 (patch) | |
tree | 8948802851760f7a1978cfa183be744ebf5f84b8 /libdiskfs | |
parent | f36a186b7784e30c0f83018b7c3f8f77dc9062b4 (diff) |
(diskfs_shutdown): Don't sync if DISKFS_READONLY.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/shutdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/shutdown.c b/libdiskfs/shutdown.c index e1f7f4e9..a3f96e22 100644 --- a/libdiskfs/shutdown.c +++ b/libdiskfs/shutdown.c @@ -87,7 +87,7 @@ diskfs_shutdown (int flags) return EBUSY; } - if ((flags & FSYS_GOAWAY_NOSYNC) == 0) + if (!diskfs_readonly && (flags & FSYS_GOAWAY_NOSYNC) == 0) { diskfs_shutdown_pager (); diskfs_set_hypermetadata (1, 1); |