From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vyacheslav Dubeyko Subject: Re: [PATCH v3 01/15] hfsplus: add necessary declarations for journal replay Date: Wed, 12 Feb 2014 20:38:32 +0400 Message-ID: <1392223112.3104.14.camel@ubuntu> References: <1392215107.12337.97.camel@ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Linux FS devel list , Al Viro , ChristophHellwig , Hin-Tak Leung , Andrew Morton To: Sergei Antonov Return-path: Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:56048 "HELO gproxy5-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753155AbaBLQi4 (ORCPT ); Wed, 12 Feb 2014 11:38:56 -0500 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, 2014-02-12 at 17:15 +0100, Sergei Antonov wrote: > > The journal info block (struct hfsplus_journal_info_block) is big-endian > > structure. The rest structures of HFS+ journal (struct hfsplus_journal_header, > > struct hfsplus_blhdr, struct hfsplus_block_info) are little-endian. > > Journal header and block lists are either big-endian or little-endian. > See JOURNAL_NEED_SWAP in Apple's code. Do you know how to create journal with BE internal structures? Or have you examples of journal with such structures? I haven't such examples. And I can't see such opportunities in newfs_hfs tool. So, I don't think that Journal header and block lists can be not little-endian. I can't implement or test something unreal. Could you share the way of creation HFS+ journal with big-endian Journal header and block lists? Thanks, Vyacheaslav Dubeyko.