patch-2.4.21 linux-2.4.21/fs/hfs/super.c

Next file: linux-2.4.21/fs/inode.c
Previous file: linux-2.4.21/fs/ext3/super.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/fs/hfs/super.c linux-2.4.21/fs/hfs/super.c
@@ -434,6 +434,12 @@
 		goto bail2;
 	}
 
+	if (mdb->attrib & (HFS_SB_ATTRIB_HLOCK | HFS_SB_ATTRIB_SLOCK)) {
+		if (!silent)
+			hfs_warn("hfs_fs: Filesystem is marked locked, mounting read-only.\n");
+		s->s_flags |= MS_RDONLY;
+	}
+
 	HFS_SB(s)->s_mdb = mdb;
 	if (HFS_ITYPE(mdb->next_id) != 0) {
 		hfs_warn("hfs_fs: too many files.\n");

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