Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 18:05:29 -0800
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        ppc@freebsd.org
Subject:   Re: HFS+
Message-ID:  <4EAA1052-7F09-44C4-ADC8-017A38E757B7@mac.com>
In-Reply-To: <4586F685.1090403@freebsd.org>
References:  <38D687BE-F674-4954-B6D3-8D25A8E9B9B5@mac.com> <4586F685.1090403@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Dec 18, 2006, at 12:13 PM, Peter Grehan wrote:

> Hi Marcel,
>
> >In fact I either take a detour though CD or over the NET.
> >Once the FreeBSD boot loader has been started it will grab
> >the kernel from the UFS root file system.
>
>  I usually copy the loader to the root directory on the boot HFS  
> filesystem and use the parameter to specify the root FreeBSD UFS  
> partition e.g.
>
> 0 > boot hd:loader hd:7
>
>  though it would be very nice to do
>
> 0 > boot hd:loader

I typically don't have Mac OS X on the disk when I use the
machine for FreeBSD :-)

>> One big factor in this is that we don't support HFS+ and as
>> such I've been looking at that. If someone knows of BSD
>> licensed implementations (or parts thereof), let me know.
>> I don't want to reinvent the wheel...
>
>  There was a NetBSD SoC project to do just that:
>
>     http://netbsd-soc.sourceforge.net/projects/hfs/

I noticed it, but I didn't see anything in the NetBSD repo.
I'm not sure it actually got committed...

>  One of the issues is that I think HFS is now journalled by default  
> unless you explictily disable it.

Well, as long as the journal is empty when we mount the FS
we can pretty much ignore that fact. It's not ideal, but it
does allow us to mount in all cases Mac OS X didn't crash,
which I think should hardly be a limitation :-)

>  Another path to take is to make FreeBSD's UFS understand Apple's  
> version. That code is in NetBSD.

Yeah. I formatted my UFS root file system using Mac OS X
only to have the FreeBSD kernel panic when I tried to mount
the file system. If anything I'd like us to not panic, but
supporting their variant would be even nicer...

>  I started writing a libstand module so the loader would be able to  
> read it's parameters from a HFS filesystem.

It would be really cool to have that. I'm looking onto Apple's
open source HFS+ code. Maybe there's levarage...

-- 
Marcel Moolenaar
xcllnt@mac.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EAA1052-7F09-44C4-ADC8-017A38E757B7>