Subject: Re: ntohl usage in Apple UFS code
To: Frank van der Linden <>
From: Darrin B. Jewell <>
List: tech-kern
Date: 09/30/2002 07:10:57
Frank van der Linden <> writes:
> I noticed several uses of ntohl() in ffs_appleufs.c. First of all,
> these should really be be32toh(), for consistency, since it's
> not networking code.
Ok, I'll change it to use be32toh() then.

> Secondly, is Apple UFS defined to be big endian? If not, these
> need to be conditional like the rest of the FFS swap code.
Yes, Apple UFS is defined to be big endian, especially the volume
label.  I will add a comment to this effect.