From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hin-Tak Leung Subject: Re: testing HFS+ journal replay against real Apple code Date: Fri, 7 Feb 2014 16:01:16 +0000 (GMT) Message-ID: <1391788876.64473.YahooMailBasic@web172304.mail.ir2.yahoo.com> Reply-To: htl10@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: linux-fsdevel@vger.kernel.org To: slava@dubeyko.com Return-path: Received: from nm2-vm7.bullet.mail.ir2.yahoo.com ([212.82.96.87]:33004 "EHLO nm2-vm7.bullet.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbaBGQBS convert rfc822-to-8bit (ORCPT ); Fri, 7 Feb 2014 11:01:18 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: ------------------------------ On Fri, Feb 7, 2014 5:53 AM GMT Vyacheslav Dubeyko wrote: >Hi Hin-Tak, > >On Thu, 2014-02-06 at 13:45 +0000, Hin-Tak Leung wrote: >> Hi Vyacheslav, >> I was looking for powerpc emulation for a different purpose, and >> came upon this collection of ideas. Apple have released >> the bare darwin OS (kernel, command-line utils, etc without the Mac OS X >> GUI on top) as an installable ISO, I think darwin 8 is roughly equivalent >> to Mac OS X 10.4 . But as far as the file system driver is concerned, >> it should be sufficient for your needs for HFS+ inter-op. >> >> So if you have a spare computer, you can just install it... >> >> http://www.opensource.apple.com/static/iso/ >> >> I am thinking of making a powerpc instance with PearPC (since I have >> other use of that) - apparently it work well enough, but the x86 install >> probably can work with an x86 emulator/vmware, etc. >> >> That means you can simulate unclean shutdown, etc by killing the emulator >> in the middle of something, etc. and "mount -o loop -t hpfsplus" the image" >> should roll the journal, etc, right? >> > >Thank you for the advice. I'll consider this way. > >Currently, I have for testing two MacMini with different versions of Mac >OS X for testing. And I use external flash sticks and external drives >for testing. I suppose that such way gives more freedom for generation >different HFS+ volumes' configurations (block size, journal size and so >on) and states (workloads, journal content, journal state and so on) >under Mac OS X than it can be achieved for rootfs. Also, such way gi >more precise way for sudden power-off emulation, I suppose. > >But, anyway, your suggestion can be useful, I think. >Thanks, >Vyacheslav Dubeyko. Hi Vyacheslav, Since I wrote, I have managed to install the powerpc version of darwin 8 under pearpc. It is supposed to be equivalent to mac os x 10.4 without the GUI - I think that's probably also where journalling was first introduced? Aanyway, i do see some kernel messages about journal playback as darwin boots up, so it is useable for hfs+ journal testing purposes. Though once one gets it set up, the "virtual machine" is quite useable and stable (and I intended to do some unrelated dev under it), I found the latest version (0. 5, 2011) of pearpc quite broken and had to go back to older ones (0.4- in 2005). Darwin 8 was reported explicitly to work in a few mailing list posts against pearpc 0.3.1 , so I persisted. Since I was after powerpc emulation, that's what I wanted, but Macintoshes are intel-based these days, and developments of pearpc seems to have really stalled; you would probably get much better performance with intel darwin on intel chip anyway, so I suggest that if you want to explore this route, using the intel version of darwin 8 (installer iso also at the URL above) is probably a better option. HTH, Hin-Tak