linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] python-btrfs: getting arch dependent ioctl handling right
@ 2017-02-04 23:37 Hans van Kranenburg
  2017-02-04 23:56 ` Hugo Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Hans van Kranenburg @ 2017-02-04 23:37 UTC (permalink / raw)
  To: linux-btrfs

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:

https://github.com/knorrie/python-btrfs/commits/ioctl

The only other hardware than amd64 I have is a raspberry pi, which
doesn't even seem to fall into the category having exceptions to the
defaults...

So, my question is:

1. am I still doing it wrong, or is this going into the right direction?

2. can you please test this branch if you have access to any of 'alpha',
'mips', 'powerpc', 'sparc', 'parisc' which runs a btrfs filesystem and
let me know if this makes it possible to use the library (e.g. run some
examples from the examples/ dir)

3. I also understand that there are difficulties for users who user 32
bit userland with a 64 bit kernel.
 - What is the exact technical reason for this?
 - What's the general opinion about this usecase? (needs to work, or,
"doctor, if I push here it hurts; well, don't push there"...)

Thanks,

-- 
Hans van Kranenburg

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-05  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 23:37 [RFC] python-btrfs: getting arch dependent ioctl handling right Hans van Kranenburg
2017-02-04 23:56 ` Hugo Mills
2017-02-05  0:17   ` Hans van Kranenburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).