Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 178398
Collapse All | Expand All

(-)linux-old/fs/hfsplus/super.c (-7 / +6 lines)
Lines 242-251 Link Here
242
242
243
		if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
243
		if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
244
			printk(KERN_WARNING "hfs: filesystem was not cleanly unmounted, "
244
			printk(KERN_WARNING "hfs: filesystem was not cleanly unmounted, "
245
			       "running fsck.hfsplus is recommended.  leaving read-only.\n");
245
			       "running fsck.hfsplus is recommended.\n");
246
			sb->s_flags |= MS_RDONLY;
246
		}
247
			*flags |= MS_RDONLY;
247
		if (sbi.flags & HFSPLUS_SB_FORCE) {
248
		} else if (sbi.flags & HFSPLUS_SB_FORCE) {
249
			/* nothing */
248
			/* nothing */
250
		} else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
249
		} else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
251
			printk(KERN_WARNING "hfs: filesystem is marked locked, leaving read-only.\n");
250
			printk(KERN_WARNING "hfs: filesystem is marked locked, leaving read-only.\n");
Lines 342-350 Link Here
342
341
343
	if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
342
	if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
344
		printk(KERN_WARNING "hfs: Filesystem was not cleanly unmounted, "
343
		printk(KERN_WARNING "hfs: Filesystem was not cleanly unmounted, "
345
		       "running fsck.hfsplus is recommended.  mounting read-only.\n");
344
		       "running fsck.hfsplus is recommended.\n");
346
		sb->s_flags |= MS_RDONLY;
345
	}
347
	} else if (sbi->flags & HFSPLUS_SB_FORCE) {
346
	if (sbi->flags & HFSPLUS_SB_FORCE) {
348
		/* nothing */
347
		/* nothing */
349
	} else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
348
	} else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
350
		printk(KERN_WARNING "hfs: Filesystem is marked locked, mounting read-only.\n");
349
		printk(KERN_WARNING "hfs: Filesystem is marked locked, mounting read-only.\n");

Return to bug 178398