summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-06-30 21:59:32 +0000
committerThomas Bushnell <thomas@gnu.org>1997-06-30 21:59:32 +0000
commit9cb9fa49f083df89db933b85695e902be6d26cf1 (patch)
treedf637fe19c9224c523d976750b0089d7834a9844 /ufs
parent3d78237de1e2eb1493079f5ede152d2433a10c70 (diff)
Mon Jun 30 17:38:57 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* main.c (main): If the store cannot be made writable, then set diskfs_hard_readonly and diskfs_readonly.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/ChangeLog5
-rw-r--r--ufs/main.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ufs/ChangeLog b/ufs/ChangeLog
index debab075..ca832c8e 100644
--- a/ufs/ChangeLog
+++ b/ufs/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jun 30 17:38:57 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * main.c (main): If the store cannot be made writable, then set
+ diskfs_hard_readonly and diskfs_readonly.
+
1997-06-20 Miles Bader <miles@gnu.ai.mit.edu>
* hyper.c (diskfs_set_hypermetadata): Adjust device addresses for
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 ();