summaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/ext2fs.c')
-rw-r--r--ext2fs/ext2fs.c4
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 ();