svn commit: r198009 - projects/mips/sbin

Bruce Evans brde at optusnet.com.au
Wed Oct 14 00:32:34 UTC 2009


On Tue, 13 Oct 2009, M. Warner Losh wrote:

> In message: <200910130043.n9D0hVCr089970 at svn.freebsd.org>
>            Oleksandr Tymoshenko <gonzo at FreeBSD.org> writes:
> : Log:
> :   - Enable fdisk build for MIPS
>
> I'm starting to think that the right answer here is to enable fdisk
> for all platforms.

Of course.  fdisk is MI except for bugs in it.  It should be usable
on any system to manage disks or disk images created on any system
that needs it natively.

fdisk certainly has bugs like assuming that the host system byte order
is the same as the target system byte order.  It fails on big-endian
systems because the target system byte order is always little-endian.
Its device independence was broken using g_device_path() just over 1
year ago, so it no longer works on disk images (except possibly if.
Older geom breakage is still handled benignly by not aborting when
fdisk is run on a system or file that doesn't support geom ioctls
(it even has a comment about this, but g_device_path() fails long
before the working code is reached).

Bruce


More information about the freebsd-arch mailing list