203-hfsplus_fix.patch 1.0 KB

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