btrfs-progs: ioctl: add 32bit compat for SET_RECEIVED_SUBVOL
authorDavid Sterba <dsterba@suse.com>
Thu, 6 Oct 2016 11:06:18 +0000 (13:06 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 12:56:40 +0000 (14:56 +0200)
commitbbda9a2892351ab14c90824c4c7b15c11c640512
tree2c2f0c26675966967403b6c64916284f8be07564
parentd8d0a60406b14b140e83a8c0d5eaedb5dca44092
btrfs-progs: ioctl: add 32bit compat for SET_RECEIVED_SUBVOL

The ioctl value of SET_RECEIVED_SUBVOL will be different on 32bit
userspace and 64bit kernel. This is transparently handled on the kernel
side. We now define the same structure so we can verify the ioctl value.

The defined structure and ioctl should not be used. It is exists only
for testing purposes, documenting the mess and as a warning for the
future.

Signed-off-by: David Sterba <dsterba@suse.com>
ioctl.h