diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-06-30 21:57:23 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-06-30 21:57:23 +0000 |
commit | 740fad8677fc54536b060b88fe33585ed3a04b8d (patch) | |
tree | 057e2310777c7a00045e5d8233da9b620abac6d6 /ext2fs | |
parent | 62a832aeced2eb0610cde6534688cc53f6bdb9c0 (diff) |
Mon Jun 30 17:34:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* ext2fs.c (diskfs_readonly): Delete variable definition.
(main): If the store cannot be made writable, then set
diskfs_hard_readonly and diskfs_readonly.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/ChangeLog | 6 | ||||
-rw-r--r-- | ext2fs/ext2fs.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog index 8d0c2eb4..8b4c5c41 100644 --- a/ext2fs/ChangeLog +++ b/ext2fs/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 30 17:34:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> + + * ext2fs.c (diskfs_readonly): Delete variable definition. + (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> * pager.c (disk_pager_read_page): Initialize READ to 0 to force 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 (); |