summaryrefslogtreecommitdiff
path: root/ufs/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/main.c')
-rw-r--r--ufs/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ufs/main.c b/ufs/main.c
index e6a7e303..6116792b 100644
--- a/ufs/main.c
+++ b/ufs/main.c
@@ -205,6 +205,9 @@ main (int argc, char **argv)
log2_dev_blocks_per_dev_bsize++;
log2_dev_blocks_per_dev_bsize -= store->log2_block_size;
+ if (store->flags & STORE_HARD_READONLY)
+ diskfs_readonly = diskfs_hard_readonly = 1;
+
/* Map the entire disk. */
create_disk_pager ();