summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs/hyper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs/hyper.c b/ufs/hyper.c
index b39848ee..74415b63 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -107,7 +107,7 @@ diskfs_set_hypermetadata (int wait, int clean)
{
error_t (*writefn) (daddr_t, vm_address_t, long);
writefn = (wait ? dev_write_sync : dev_write);
-
+
spin_lock (&alloclock);
if (csum_dirty)
{
@@ -117,7 +117,7 @@ diskfs_set_hypermetadata (int wait, int clean)
csum_dirty = 0;
}
- if (clean)
+ if (clean && !diskfs_readonly)
{
sblock->fs_clean = 1;
sblock_dirty = 1;
@@ -146,7 +146,7 @@ diskfs_set_hypermetadata (int wait, int clean)
sblock_dirty = 0;
}
- if (clean)
+ if (clean && !diskfs_readonly)
{
sblock->fs_clean = 0;
sblock_dirty = 1;