203-hfsplus_fix.patch 1.2 KB

123456789101112131415161718192021222324
  1. Index: linux-2.4.35.4/fs/hfsplus/super.c
  2. ===================================================================
  3. --- linux-2.4.35.4.orig/fs/hfsplus/super.c
  4. +++ linux-2.4.35.4/fs/hfsplus/super.c
  5. @@ -240,8 +240,7 @@ int hfsplus_remount(struct super_block *
  6. if (!(*flags & MS_RDONLY)) {
  7. struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
  8. - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
  9. - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  10. + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  11. printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
  12. "running fsck.hfsplus is recommended. leaving read-only.\n");
  13. sb->s_flags |= MS_RDONLY;
  14. @@ -343,8 +342,7 @@ static int hfsplus_fill_super(struct sup
  15. /* Set up operations so we can load metadata */
  16. sb->s_op = &hfsplus_sops;
  17. - if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_INCNSTNT)) ||
  18. - !(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  19. + if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  20. if (!silent)
  21. printk("HFS+-fs warning: Filesystem was not cleanly unmounted, "
  22. "running fsck.hfsplus is recommended. mounting read-only.\n");