fix apex compile on osx, suppress some build warnings
[openwrt.git] / target / linux / generic-2.4 / patches / 203-hfsplus_fix.patch
1 Index: linux-2.4.35.4/fs/hfsplus/super.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/fs/hfsplus/super.c 2007-12-15 05:19:39.238657121 +0100
4 +++ linux-2.4.35.4/fs/hfsplus/super.c 2007-12-15 05:19:59.575816071 +0100
5 @@ -240,8 +240,7 @@
6 if (!(*flags & MS_RDONLY)) {
7 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
8
9 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
10 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
11 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
12 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
13 "running fsck.hfsplus is recommended. leaving read-only.\n");
14 sb->s_flags |= MS_RDONLY;
15 @@ -343,8 +342,7 @@
16 /* Set up operations so we can load metadata */
17 sb->s_op = &hfsplus_sops;
18
19 - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
20 - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
21 + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
22 if (!silent)
23 printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
24 "running fsck.hfsplus is recommended. mounting read-only.\n");
This page took 0.038123 seconds and 5 git commands to generate.