Re: [RFC] python-btrfs: getting arch dependent ioctl handling right

2017-02-04 Thread Hans van Kranenburg
On 02/05/2017 12:56 AM, Hugo Mills wrote: > On Sun, Feb 05, 2017 at 12:37:18AM +0100, Hans van Kranenburg wrote: >> Hi, >> >> since I'd like to have my python btrfs library work correctly for users >> with other systems than amd64, I have been looking at IOCTL number >> generation a bit. >> >> I

Re: [RFC] python-btrfs: getting arch dependent ioctl handling right

2017-02-04 Thread Hugo Mills
On Sun, Feb 05, 2017 at 12:37:18AM +0100, Hans van Kranenburg wrote: > Hi, > > since I'd like to have my python btrfs library work correctly for users > with other systems than amd64, I have been looking at IOCTL number > generation a bit. > > I just made something up in a branch, which follows

[RFC] python-btrfs: getting arch dependent ioctl handling right

2017-02-04 Thread Hans van Kranenburg
Hi, since I'd like to have my python btrfs library work correctly for users with other systems than amd64, I have been looking at IOCTL number generation a bit. I just made something up in a branch, which follows the same way in which the IOC defines in kernel source are done: