Matthew Hannigan wrote:

> No need for C, dd should do the job:
> 
>       dd conv=swab < fvs338-test.img  > fvs338-test-bigendian.img

>From the man page:

       swab   swap every pair of input bytes

This is almost *certainly* *not* what you want. My guess is that
while this filesystem has *some* 16 byte integers, it also has 32
bit integers and probably also 64 bit integers. Swapping pairs of
bytes will do the right thing for 16 bit integers, but not for
any of the others.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Working with Perforce in my day job makes me really appreciate
just how good GNU Arch is." -- Erik de Castro Lopo
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to