On Thu, Jul 5, 2012 at 9:01 PM, Zach Brown <z...@zabbo.net> wrote: > On 07/05/2012 11:59 AM, Ilya Dryomov wrote: > >> What if you are on a big-endian machine with a big-endian kernel and >> userspace? Everything on-disk should be little-endian, so if you are >> going to write stuff you got from userspace to disk, at some point you >> have to make sure you are writing out bytes in the right order. >> >> Alex already does that, so my remarks are moot ;) > > > Yeah, indeed, we were only talking about the ioctl interface crossing > the user<->kernel barrier :). > I decided to not use __leXX variables in the new btrfs_ioctl_timespec structure because as most arguments found ioctls are currently in cpu dependent endianess. The kernel will then do the endianess conversion as it already did with struct timespec. > - z -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- [RFC PATCH 1/7] Btrfs: use _IOR for BTRFS_IOC_SUBVOL_GETFL... Alexander Block
- [RFC PATCH 4/7] Btrfs: introduce subvol uuids and times Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids and... Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids and... Zach Brown
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids... Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol u... Zach Brown
- Re: [RFC PATCH 4/7] Btrfs: introduce subv... Ilya Dryomov
- Re: [RFC PATCH 4/7] Btrfs: introduce... Zach Brown
- Re: [RFC PATCH 4/7] Btrfs: intro... Ilya Dryomov
- Re: [RFC PATCH 4/7] Btrfs: intro... Zach Brown
- Re: [RFC PATCH 4/7] Btrfs: intro... Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: intro... Ilya Dryomov
- Re: [RFC PATCH 4/7] Btrfs: intro... Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids and... Arne Jansen
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids... Alexander Block
- Re: [RFC PATCH 4/7] Btrfs: introduce subvol u... Arne Jansen
- Re: [RFC PATCH 4/7] Btrfs: introduce subv... Alexander Block
- [RFC PATCH 3/7] Btrfs: make iref_to_path non static Alexander Block
- [RFC PATCH 2/7] Btrfs: add helper for tree enumeration Alexander Block
- [RFC PATCH 5/7] Btrfs: add btrfs_compare_trees function Alexander Block