patch-2.4.22 linux-2.4.22/fs/hfs/mdb.c

Next file: linux-2.4.22/fs/hfs/super.c
Previous file: linux-2.4.22/fs/fat/misc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/fs/hfs/mdb.c linux-2.4.22/fs/hfs/mdb.c
@@ -197,7 +197,7 @@
 
 	if (!(mdb->attrib & htons(HFS_SB_ATTRIB_CLEAN))) {
 		hfs_warn("hfs_fs: WARNING: mounting unclean filesystem.\n");
-	} else if (!readonly) {
+	} else if (!readonly && !(mdb->attrib & (HFS_SB_ATTRIB_HLOCK | HFS_SB_ATTRIB_SLOCK))) {
 		/* Mark the volume uncleanly unmounted in case we crash */
 		hfs_put_ns(mdb->attrib & htons(~HFS_SB_ATTRIB_CLEAN),
 			   raw->drAtrb);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)