summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-20 23:26:25 +0000
committerMiles Bader <miles@gnu.org>1995-04-20 23:26:25 +0000
commitb48969258bb051921ced370af96d71d47587435a (patch)
treeab70fe6a3d644af02030b03544309ff7b8a5e24f
parentb0f1b3152e2a7737cc5c6a31dcbbd105ba4a4465 (diff)
Formerly ext2fs.c.~15~
-rw-r--r--ext2fs/ext2fs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c
index 19fa1c9d..91587b85 100644
--- a/ext2fs/ext2fs.c
+++ b/ext2fs/ext2fs.c
@@ -279,6 +279,12 @@ main (int argc, char **argv)
/* A handy source of page-aligned zeros. */
vm_allocate (mach_task_self (), &zeroblock, block_size, 1);
+ if (!diskfs_readonly)
+ {
+ sblock->s_state &= ~EXT2_VALID_FS;
+ sync_super_block ();
+ }
+
inode_init ();
/* Find our root node. */