patch-1.3.69 linux/fs/ext2/super.c
Next file: linux/fs/fat/file.c
Previous file: linux/fs/ext2/ialloc.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Mon Feb 26 08:38:08 1996
- Orig file:
v1.3.68/linux/fs/ext2/super.c
- Orig date:
Tue Jan 23 21:15:50 1996
diff -u --recursive --new-file v1.3.68/linux/fs/ext2/super.c linux/fs/ext2/super.c
@@ -75,6 +75,10 @@
va_start (args, fmt);
vsprintf (error_buf, fmt, args);
va_end (args);
+ /* this is to prevent panic from syncing this filesystem */
+ if (sb->s_lock)
+ sb->s_lock=0;
+ sb->s_flags |= MS_RDONLY;
panic ("EXT2-fs panic (device %s): %s: %s\n",
kdevname(sb->s_dev), function, error_buf);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this