Subject: FW: Big/Little endian conversion in FS
To: 'tech-kern@netbsd.org' <tech-kern@NetBSD.ORG>
From: Paul Evans <paule@martex.gen.oh.us>
List: tech-kern
Date: 09/16/1997 17:56:53
I guess to be really useful we should be able to change disklabels?

(wouldn't the capability be useless w/o that, or would the performance =
gain be worth it?)

I'd volunteer to do it..

	-Paul

-----Original Message-----
From:	Manuel Bouyer [SMTP:bouyer@chassiron.ensta.fr]
Sent:	Tuesday, September 16, 1997 2:14 PM
To:	Paul Evans
Cc:	'Scott Reynolds'; tech-kern@NetBSD.ORG
Subject:	RE: Big/Little endian conversion in FS

On Sep 15, Paul Evans wrote
>=20
> Just a Thought:
>=20
> Would it be a valid function of fsck (or mkfs) to actually swap the =
bytes in a filesystem on a disk?  To change the native host from big to =
little and vice-versa?
>=20
> I was specifically thinking of creating installation disks  from  =
remote machines of a different endianess. As well as moving disks from =
dead computers for re-use..

This can be done. Should be easy as fsck will read all the fs metadatas.
But note that this won't convert the disklabel, and this is a much =
harder work
as disklabels changes from a port to another.

--
Manuel Bouyer, MASI, Universite Paris VI.
email: bouyer@rp.lip6.fr
       bouyer@ensta.fr
--