Date: Fri, 25 Sep 1998 23:18:59 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/gnu/ext2fs ext2_vfsops.c ext2_fs_sb.h Message-ID: <199809260618.XAA01206@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 1998/09/25 23:18:59 PDT
Modified files:
sys/gnu/ext2fs ext2_vfsops.c ext2_fs_sb.h
Log:
Fixed clean flag handling:
Fixes for bugs not shared with ffs:
- don't mount unclean filesystems rw unless forced to.
- accept EXT2_ERROR_FS (treat it like !EXT2_VALID_FS). We still don't set
this or honour the maximal mount count.
- don't attempt to print the name of the mount point when mounting an
unclean file system, since the name of the previous mount point is
unknown and the name of the current mount point is still "".
Fixes for bugs shared with ffs until recently:
- don't set the clean flag on unmount of an initially-unclean filesystem
that was (forcibly) mounted rw.
- set the clean flag on rw -> ro update of a mounted initially-clean
filesystem.
- fixed some style bugs (mostly long lines).
The fixes are slightly simpler than for ffs, because the relevant on-disk
state is not a simple boolean variable, and the superblock has a core-only
extension.
Obtained from: parts from ffs_vfsops.c, parts from NetBSD
Revision Changes Path
1.38 +35 -10 src/sys/gnu/ext2fs/ext2_vfsops.c
1.3 +1 -0 src/sys/gnu/ext2fs/ext2_fs_sb.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809260618.XAA01206>
