Byteswap and UFS

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu May 8 12:47:37 UTC 2008


On Wed, May 07, 2008 at 11:10:24PM -0400, Justin Hibbits wrote:
> Are there any plans to add byteswapping into the UFS code, ala NetBSD?  This 
> would be really useful for moving disks between architectures.  I noticed pjd 
> was doing some work with this, but last thing I can find on it is a blog 
> entry from over a year ago.

I did the read-only part, ie. you can mount UFS file system read-only
created on system with different byte order than yours. Read-write
support is much harder. Also the NetBSD's way of doing it is very
intrusive to the UFS source - number of changes is a scary. I was trying
to do it a bit differently (on lower level), which went nice for
read-only, but may be harder for read-write. The code was never
committed.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080508/d6729259/attachment.pgp


More information about the freebsd-current mailing list