[PATCH 3/3] Add btrfs ioctl support.
Dmitry V. Levin
ldv at altlinux.org
Fri Apr 29 01:51:34 UTC 2016
On Thu, Apr 28, 2016 at 11:27:01AM -0400, Jeff Mahoney wrote:
> * btrfs.c: New file.
> * file_ioctl.c: New file.
First, you've forgotten to include file_ioctl.c into the patch.
> * Makefile.am (strace_SOURCES): Add it.
> * defs.h [LINUX] (btrfs_ioctl): New function.
> * ioctls.c (ioctl_decode) [LINUX]: Use it to decode BTRFS_* ioctls.
> * configure.ac: Add check for struct btrfs_ioctl_feature_flags.
> Add check for struct btrfs_ioctl_fs_info_args.nodesize.
> Add struct btrfs_ioctl_defrag_range_args.
> * xlat/btrfs_balance_flags.in: New file.
> * xlat/btrfs_defrag_flags.in: New file.
> * xlat/btrfs_dev_replace_cmds.in: New file.
> * xlat/btrfs_dev_replace_results.in: New file.
> * xlat/btrfs_dev_replace_state.in: New file.
> * xlat/btrfs_dev_stats_flags.in: New file.
> * xlat/btrfs_dev_stats_values.in: New file.
> * xlat/btrfs_features_compat_ro.in: New file.
> * xlat/btrfs_features_incompat.in: New file.
> * xlat/btrfs_key_types.in: New file.
> * xlat/btrfs_qgroup_ctl_cmds.in: New file.
> * xlat/btrfs_qgroup_inherit_flags.in: New file.
> * xlat/btrfs_qgroup_limit_flags.in: New file.
> * xlat/btrfs_qgroup_status_flags.in: New file.
> * xlat/btrfs_scrub_flags.in: New file.
> * xlat/btrfs_snap_flags_v2.in: New file.
> * xlat/btrfs_space_info_flags.in: New file.
> * xlat/btrfs_tree_objectids.in: New file.
> ---
> Makefile.am | 2 +
> btrfs.c | 1298 ++++++++++++++++++++++++++++++++++++
> configure.ac | 8 +
> defs.h | 2 +
> ioctl.c | 4 +
> xlat/btrfs_balance_flags.in | 16 +
> xlat/btrfs_defrag_flags.in | 2 +
> xlat/btrfs_dev_replace_cmds.in | 3 +
> xlat/btrfs_dev_replace_results.in | 4 +
> xlat/btrfs_dev_replace_state.in | 5 +
> xlat/btrfs_dev_stats_flags.in | 1 +
> xlat/btrfs_dev_stats_values.in | 11 +
> xlat/btrfs_features_compat.in | 0
> xlat/btrfs_features_compat_ro.in | 1 +
> xlat/btrfs_features_incompat.in | 10 +
> xlat/btrfs_key_types.in | 40 ++
> xlat/btrfs_qgroup_ctl_cmds.in | 3 +
> xlat/btrfs_qgroup_inherit_flags.in | 1 +
> xlat/btrfs_qgroup_limit_flags.in | 6 +
> xlat/btrfs_qgroup_status_flags.in | 2 +
> xlat/btrfs_scrub_flags.in | 1 +
> xlat/btrfs_snap_flags_v2.in | 3 +
> xlat/btrfs_space_info_flags.in | 11 +
> xlat/btrfs_tree_objectids.in | 12 +
> 24 files changed, 1446 insertions(+)
> create mode 100644 btrfs.c
> create mode 100644 xlat/btrfs_balance_flags.in
> create mode 100644 xlat/btrfs_defrag_flags.in
> create mode 100644 xlat/btrfs_dev_replace_cmds.in
> create mode 100644 xlat/btrfs_dev_replace_results.in
> create mode 100644 xlat/btrfs_dev_replace_state.in
> create mode 100644 xlat/btrfs_dev_stats_flags.in
> create mode 100644 xlat/btrfs_dev_stats_values.in
> create mode 100644 xlat/btrfs_features_compat.in
> create mode 100644 xlat/btrfs_features_compat_ro.in
> create mode 100644 xlat/btrfs_features_incompat.in
> create mode 100644 xlat/btrfs_key_types.in
> create mode 100644 xlat/btrfs_qgroup_ctl_cmds.in
> create mode 100644 xlat/btrfs_qgroup_inherit_flags.in
> create mode 100644 xlat/btrfs_qgroup_limit_flags.in
> create mode 100644 xlat/btrfs_qgroup_status_flags.in
> create mode 100644 xlat/btrfs_scrub_flags.in
> create mode 100644 xlat/btrfs_snap_flags_v2.in
> create mode 100644 xlat/btrfs_space_info_flags.in
> create mode 100644 xlat/btrfs_tree_objectids.in
I've managed to compile this after
$ sed -i s/PRI__s64/PRI__d64/g btrfs.c
$ sed -i '1 i #val_type uint64_t' xlat/btrfs_*.in
Please rebase onto the current master and include file_ioctl.c.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160429/e312191e/attachment.bin>
More information about the Strace-devel
mailing list