Re: U64 Ordering in File System Code of Btrfs
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 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: U64 Ordering in File System Code of Btrfs
> [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 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
U64 Ordering in File System Code of Btrfs
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 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies