[parted-devel] Regarding little and big endian support

xerces8 xerces8 at butn.net
Sat Jan 5 11:23:02 UTC 2008


"Avinash Malik" <avimalik at gmail.com> wrote:

> #ifdef __LITTLE_ENDIAN
> sblock.fs_version = PED_CPU_TO_LE32(fs_verison)
> #endif
> #ifdef __BIG_ENDIAN
> sblock.fs_version = PED_CPU_TO_BE32(fs_version)
> #endif

This is the same as simply : sblock.fs_version = fs_version;

Find out how the on disk structure must be. Then adapt your code.

Regards,
David





More information about the parted-devel mailing list