[PATCH 0/3] Add btrfs ioctl support

Jeff Mahoney jeffm at suse.com
Thu Mar 31 01:19:24 UTC 2016


Hi all -

This short series adds support for the btrfs ioctls.  Its structures
make heavy use of __u64 so rather than cast every single member, I added
new PRI* macros to print them properly.  It also uses 64-bit flags and
defines values that are larger than can be described by a 32-bit
variable, so I've converted xlat to use a 64-bit val field.

Thanks,

-Jeff

Jeff Mahoney (3):
  util: change type of struct xlat.val to uint64_t
  defs: define PRI__[uxs]64 to print __[su]64 values
  Add btrfs ioctl support.

 Makefile.am                        |    1 +
 btrfs.c                            | 1240 ++++++++++++++++++++++++++++++++++++
 configure.ac                       |   15 +
 defs.h                             |   35 +-
 ioctl.c                            |    2 +
 util.c                             |   28 +-
 xlat/btrfs_balance_flags.in        |   12 +
 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 +
 25 files changed, 1428 insertions(+), 21 deletions(-)
 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

-- 
2.7.1





More information about the Strace-devel mailing list