Skip to content

HFS+ journal improvement - take 6

Warren Turkal linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Identify journal info block in volume header.fs/hfsplus/hfsplus_raw.h+1 -10 replies
2/2Fix journal detection on HFS+.fs/hfsplus/super.c+8 -26 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] HFS+ journal improvement - take 6

This is a patchset to change the way that the HFS+ filesystem detects whether a volume has a journal or not.

The code currently mounts an HFS+ volume read-only by default when a journal is detected. One can force a read/write mount by giving the "force" mount option. The current code has this behavior since there is no support for the HFS+ journal.

My problem is that the detection of the journal could be better. The current code tests the attribute bit in the volume header that indicates there is a journal. If that bit is set, the code assumes that there is a journal.

Unfortunately, this is not enough to really determine if there is a journal or not. When that bit is set, one must also examine the journal info block field of the volume header. If this field is 0, there is no journal, and the volume can be mounted read/write.

Thanks,
wt

Warren Turkal (2):
Identify journal info block in volume header.
Fix journal detection on HFS+.

 fs/hfsplus/hfsplus_raw.h |    2 +-
 fs/hfsplus/super.c       |   10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)