From mboxrd@z Thu Jan 1 00:00:00 1970 From: Warren Turkal Subject: [PATCH 1/2] Identify journal info block in volume header. Date: Thu, 20 Nov 2008 20:01:26 -0800 Message-ID: <1227240087-29413-2-git-send-email-wt@penguintechs.org> References: <1227240087-29413-1-git-send-email-wt@penguintechs.org> Cc: linux-fsdevel@vger.kernel.org, Warren Turkal To: Andrew Morton Return-path: Received: from rv-out-0506.google.com ([209.85.198.227]:63870 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756202AbYKUEBe (ORCPT ); Thu, 20 Nov 2008 23:01:34 -0500 Received: by rv-out-0506.google.com with SMTP id k40so766745rvb.1 for ; Thu, 20 Nov 2008 20:01:33 -0800 (PST) In-Reply-To: <1227240087-29413-1-git-send-email-wt@penguintechs.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The HFS+ support in the kernel currently will mount an HFS+ volume read-only if the volume header has the attribute bit set that indicates there is a journal. The kernel does this because there is no support for a journalled HFS+ volume. The problem is that this is only half of what needs to be checked to see if there really is a journal. There is also an entry in the volume header that tells you where to find the journal info block. In the kernel version of the kernel, this 4 byte block is labeled reserved. This patch identifies the journal info block in the header. Signed-off-by: Warren Turkal --- fs/hfsplus/hfsplus_raw.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/hfsplus/hfsplus_raw.h b/fs/hfsplus/hfsplus_raw.h index fe99fe8..14f1dd8 100644 --- a/fs/hfsplus/hfsplus_raw.h +++ b/fs/hfsplus/hfsplus_raw.h @@ -94,7 +94,7 @@ struct hfsplus_vh { __be16 version; __be32 attributes; __be32 last_mount_vers; - u32 reserved; + __be32 journal_info_block; __be32 create_date; __be32 modify_date; -- 1.5.6.3