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/ext2fs.c | |
parent | 62a832aeced2eb0610cde6534688cc53f6bdb9c0 (diff) | |
download | hurd-740fad8677fc54536b060b88fe33585ed3a04b8d.tar.gz hurd-740fad8677fc54536b060b88fe33585ed3a04b8d.tar.bz2 hurd-740fad8677fc54536b060b88fe33585ed3a04b8d.zip |
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/ext2fs.c')
-rw-r--r-- | ext2fs/ext2fs.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 (); |