Subject: Re: dump and endian
To: Wenchi Liao <wliao@midway.uchicago.edu>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-users
Date: 03/11/1999 22:10:04
On Mar 11, Wenchi Liao wrote
> So I'm playing with the dump on the 133 i386 port. I sent the dump, via
> ssh, to a solaris machine to be dd onto a tape drive:
> 
> netbsd> dump -0u -f- | ssh -l root solaris dd if=/dev/rmt/0n bs=32k
> 
> If I dd the dump file back out onto a spare disk on the solaris
> machine, I can't use ufsrestore to read the dump file (seg fault).
> However, I can use bsd's restore. Is this an endian issue? Or is the
> dump format just different?

Maybe one, the other or the two :)
dump creates files in the filesystem's endian format (so little-endian here).
I'm not sure ufsrestore can handle byte-swapped dumps.
In NetBSD-current, dump and restore can work on any byte order.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--