From 740fad8677fc54536b060b88fe33585ed3a04b8d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 30 Jun 1997 21:57:23 +0000 Subject: Mon Jun 30 17:34:27 1997 Thomas Bushnell, n/BSG * ext2fs.c (diskfs_readonly): Delete variable definition. (main): If the store cannot be made writable, then set diskfs_hard_readonly and diskfs_readonly. --- ext2fs/ext2fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext2fs/ext2fs.c') diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 17e7f080..209c5109 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -47,7 +47,6 @@ char *diskfs_server_version = HURD_VERSION; char *diskfs_extra_version = "GNU Hurd; ext2 " EXT2FS_VERSION; int diskfs_synchronous = 0; -int diskfs_readonly = 0; struct node *diskfs_root_node; @@ -173,6 +172,9 @@ main (int argc, char **argv) ext2_panic ("device block size (%u) greater than page size (%d)", store->block_size, vm_page_size); + if (store->flags & STORE_HARD_READONLY) + diskfs_readonly = diskfs_hard_readonly = 1; + /* Map the entire disk. */ create_disk_pager (); -- cgit v1.2.3