* testing HFS+ journal replay against real Apple code
@ 2014-02-06 13:45 Hin-Tak Leung
2014-02-07 5:53 ` Vyacheslav Dubeyko
0 siblings, 1 reply; 3+ messages in thread
From: Hin-Tak Leung @ 2014-02-06 13:45 UTC (permalink / raw)
To: Vyacheslav Dubeyko, Linux FS devel list
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?
Hin-Tak
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: testing HFS+ journal replay against real Apple code
2014-02-06 13:45 testing HFS+ journal replay against real Apple code Hin-Tak Leung
@ 2014-02-07 5:53 ` Vyacheslav Dubeyko
0 siblings, 0 replies; 3+ messages in thread
From: Vyacheslav Dubeyko @ 2014-02-07 5:53 UTC (permalink / raw)
To: htl10; +Cc: Linux FS devel list
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 gives
more precise way for sudden power-off emulation, I suppose.
But, anyway, your suggestion can be useful, I think.
Thanks,
Vyacheslav Dubeyko.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: testing HFS+ journal replay against real Apple code
@ 2014-02-07 16:01 Hin-Tak Leung
0 siblings, 0 replies; 3+ messages in thread
From: Hin-Tak Leung @ 2014-02-07 16:01 UTC (permalink / raw)
To: slava; +Cc: linux-fsdevel
------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-07 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 13:45 testing HFS+ journal replay against real Apple code Hin-Tak Leung
2014-02-07 5:53 ` Vyacheslav Dubeyko
-- strict thread matches above, loose matches on Subject: below --
2014-02-07 16:01 Hin-Tak Leung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).