summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext2fs/ChangeLog6
-rw-r--r--ext2fs/ext2fs.c4
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 ();