U64 Ordering in File System Code of Btrfs

nick xerofoify at gmail.com
Thu Aug 28 14:11:53 EDT 2014



On 14-08-28 02:12 AM, anupam kapoor wrote:
>>>>>> [Thu, 28 Aug 2014 00:54:47 -0400]: "nick" (nick):
> ,----[ nick ]
> | Hey Guys,
> | Thanks for the help so far. I am wondering after reading the btrfs
> | code for certain functions there seem to
> | be a lot of u64 variable and function returns of this type. Is this
> | common in file system due to the disk
> | being in a certain format and depending on the CPU being big or small
> | endian that this needed to not reorder
> | the disk parts that are being read into main memory and preserve the data's ordering?
> | Cheers Nick 
> `----
> on disk format is little-endian.
> 
> have a look at https://btrfs.wiki.kernel.org/index.php/Main_Page for
> more information. 
> 
> kind regards
> anupam
> 
Forget to check the wiki and found what I was looking for. In addition, the code docs for the kernel
are some of the best I am ever seen, the only three that even compare are the Yocto Project, Arch Wiki
and Red Hat docs. Now I understand why you guys state to read the docs first :).
Cheers Nick 



More information about the Kernelnewbies mailing list