From 9cb9fa49f083df89db933b85695e902be6d26cf1 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 30 Jun 1997 21:59:32 +0000 Subject: Mon Jun 30 17:38:57 1997 Thomas Bushnell, n/BSG * main.c (main): If the store cannot be made writable, then set diskfs_hard_readonly and diskfs_readonly. --- ufs/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ufs/main.c') 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 (); -- cgit v1.2.3