[haiku-development] Re: structs in btrfs.h

  • From: Hy Che <cvghy116@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 27 Mar 2019 18:08:25 +0700

After consulting the wiki, it appears to me that only some fields are little 
endian.
Can you point me to the link ? I want to refresh my mind about this.

      struct btrfs_timespec {
      uint64  seconds;
      uint32  nanoseconds;
  } _PACKED;
Actually the getter and setter are implemented in btrfs_inode struct
in btrfs.h . I think the reason behind is to avoid duplicate calls to
these functions.

Hy

Other related posts: