btrfs-progs: ioctl: add 64bit compat for SEND
authorDavid Sterba <dsterba@suse.com>
Thu, 6 Oct 2016 11:11:17 +0000 (13:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 12:57:02 +0000 (14:57 +0200)
commit32a168684e1564f54245f907e1a7c9c6b8d6a5d8
tree484543ddc730396198d75613996395cca3fa1969
parentbbda9a2892351ab14c90824c4c7b15c11c640512
btrfs-progs: ioctl: add 64bit compat for SEND

The ioctl value of SEND will be different on 32bit userspace and 64bit
kernel due to different pointer type width, that unfortunatelly made it
into the structure definition.

To maintain backward compatibility, we must do it in the 64bit->32bit
way, because we don't have the kernel side workardound like
SET_RECEIVED_SUBVOL has.  Changing value of SEND would then break
existing users of the raw ioctl.

The compatibility structure and ioctl should not be used, exists for
documentation, and testing.

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