diff options
author | Miles Bader <miles@gnu.org> | 1995-04-25 00:36:13 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-25 00:36:13 +0000 |
commit | bc2f6e7ea67ffa01c09f5f7dc87f40d454bd4d37 (patch) | |
tree | ee153b3f9fe494d852133112dd00de78aca95512 | |
parent | c789d21a439cbcf97b9103f7f1f6bf86470c246b (diff) |
Formerly ext2fs.c.~17~
-rw-r--r-- | ext2fs/ext2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 6f2aeaab..96dfc328 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -279,7 +279,7 @@ main (int argc, char **argv) /* A handy source of page-aligned zeros. */ vm_allocate (mach_task_self (), &zeroblock, block_size, 1); - if (!diskfs_readonly) + if (!diskfs_readonly && (sblock->s_state & EXT2_VALID_FS)) { sblock->s_state &= ~EXT2_VALID_FS; sync_super_block (); |