This series covers support for following btrfs ioctls
*BTRFS_SUBVOL_CREATE *BTRFS_IOC_ADD_DEV
*BTRFS_SUBVOL_SETFLAGS *BTRFS_IOC_RM_DEV
*BTRFS_SUBVOL_GETFLAGS *BTRFS_IOC_DEV_INFO
*BTRFS_GET_SUBVOL_INFO *BTRFS_IOC_GET_DEV_STATS
*BTRFS_IOC_SNAP_CREATE *BTRFS_IOC_GET_FEATURES
*BTRFS_IOC_SNAP_DESTROY *BTRFS_IOC_SET_FEATURES
*BTRFS_IOC_SCAN_DEV *BTRFS_IOC_GET_SUPPORTED_FEATURES
The functionalities of individual ioctls were described in this series
patch commit messages. Since all of these ioctls are added in kernel
version 3.9, their definitions in file 'linux-user/ioctls.h' are
enwrapped in an #ifdef directive.
Testing method:
Mini test programs were written for these ioctls. These test programs
can be found on a repositort which is located on the link:
https://github.com/bozutaf/btrfs-tests
These test programs were compiled (sometimes using cross compilers) for
following architectures:
* Intel 64-bit (little endian)
* Power pc 32-bit (big endian)
* Power pc 64-bit (big endian)
The corresponding native programs were executed without using QEMU on
an intel x86_64 host.
All applicable compiled programs were in turn executed through QEMU
and the results obtained were the same ones gotten for native
execution.
Filip Bozuta (4):
linux-user: Add support for a group of btrfs ioctls used for
subvolumes
linux-user: Add support for a group of btrfs ioctls used for snapshots
linux-user: Add support for btrfs ioctls used to manipulate with
devices
linux-user: Add support for btrfs ioctls used to get/set features
configure | 9 ++++++
linux-user/ioctls.h | 59 ++++++++++++++++++++++++++++++++++++++
linux-user/syscall.c | 3 ++
linux-user/syscall_defs.h | 32 +++++++++++++++++++++
linux-user/syscall_types.h | 49 +++++++++++++++++++++++++++++++
5 files changed, 152 insertions(+)
--
2.25.1