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: Wed, 19 Nov 2008 18:25:59 -0800 Message-ID: <1227147960-32355-2-git-send-email-wt@penguintechs.org> References: <1227147960-32355-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]:64441 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbYKTC0H (ORCPT ); Wed, 19 Nov 2008 21:26:07 -0500 Received: by rv-out-0506.google.com with SMTP id k40so234672rvb.1 for ; Wed, 19 Nov 2008 18:26:05 -0800 (PST) In-Reply-To: <1227147960-32355-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