History

btrfs: rename flags for vol args v2

Rename BTRFS_DEVICE_BY_ID so it's more descriptive that we specify the device by id, it'll be part of the public API. The mask of supported flags is also renamed, only for internal use. The error code for unknown flags is EOPNOTSUPP, fixed.

David Sterba committed 10 years ago

Commit 735654e1 parent 5c5c0df2 files · +8 −7Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+4−3
@@ -36,12 +36,13 @@ struct btrfs_ioctl_vol_args { · 35 unmodified lines
3636 #define BTRFS_SUBVOL_CREATE_ASYNC (1ULL << 0)
3737 #define BTRFS_SUBVOL_RDONLY (1ULL << 1)
3838 #define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2)
39−#define BTRFS_DEVICE_BY_ID (1ULL << 3)
40−#define BTRFS_VOL_ARG_V2_FLAGS \
39+#define BTRFS_DEVICE_SPEC_BY_ID (1ULL << 3)
40+
41+#define BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED \
4142 (BTRFS_SUBVOL_CREATE_ASYNC | \
4243 BTRFS_SUBVOL_RDONLY | \
4344 BTRFS_SUBVOL_QGROUP_INHERIT | \
44− BTRFS_DEVICE_BY_ID)
45+ BTRFS_DEVICE_SPEC_BY_ID)
4546
4647 #define BTRFS_FSID_SIZE 16
4748 #define BTRFS_UUID_SIZE 16