mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
btrfs-progs: add LOGICAL_INO_V2 to ioctl.h
Update the args structure, add the flags constant and the ioctl magic number. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Zygo Blaxell <ce3g8jdj@umail.furryterror.org> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e6ea9ed1f1
commit
6ccf24c7ef
11
ioctl.h
11
ioctl.h
@ -507,11 +507,18 @@ BUILD_ASSERT(sizeof(struct btrfs_ioctl_ino_path_args) == 56);
|
|||||||
struct btrfs_ioctl_logical_ino_args {
|
struct btrfs_ioctl_logical_ino_args {
|
||||||
__u64 logical; /* in */
|
__u64 logical; /* in */
|
||||||
__u64 size; /* in */
|
__u64 size; /* in */
|
||||||
__u64 reserved[4];
|
__u64 reserved[3];
|
||||||
|
__u64 flags; /* in */
|
||||||
/* struct btrfs_data_container *inodes; out */
|
/* struct btrfs_data_container *inodes; out */
|
||||||
__u64 inodes;
|
__u64 inodes;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return every ref to the extent, not just those containing logical block.
|
||||||
|
* Requires logical == extent bytenr.
|
||||||
|
*/
|
||||||
|
#define BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET (1ULL << 0)
|
||||||
|
|
||||||
enum btrfs_dev_stat_values {
|
enum btrfs_dev_stat_values {
|
||||||
/* disk I/O failure stats */
|
/* disk I/O failure stats */
|
||||||
BTRFS_DEV_STAT_WRITE_ERRS, /* EIO or EREMOTEIO from lower layers */
|
BTRFS_DEV_STAT_WRITE_ERRS, /* EIO or EREMOTEIO from lower layers */
|
||||||
@ -925,6 +932,8 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code)
|
|||||||
struct btrfs_ioctl_feature_flags[3])
|
struct btrfs_ioctl_feature_flags[3])
|
||||||
#define BTRFS_IOC_RM_DEV_V2 _IOW(BTRFS_IOCTL_MAGIC, 58, \
|
#define BTRFS_IOC_RM_DEV_V2 _IOW(BTRFS_IOCTL_MAGIC, 58, \
|
||||||
struct btrfs_ioctl_vol_args_v2)
|
struct btrfs_ioctl_vol_args_v2)
|
||||||
|
#define BTRFS_IOC_LOGICAL_INO_V2 _IOWR(BTRFS_IOCTL_MAGIC, 59, \
|
||||||
|
struct btrfs_ioctl_logical_ino_args)
|
||||||
#define BTRFS_IOC_GET_SUBVOL_INFO _IOR(BTRFS_IOCTL_MAGIC, 60, \
|
#define BTRFS_IOC_GET_SUBVOL_INFO _IOR(BTRFS_IOCTL_MAGIC, 60, \
|
||||||
struct btrfs_ioctl_get_subvol_info_args)
|
struct btrfs_ioctl_get_subvol_info_args)
|
||||||
#define BTRFS_IOC_GET_SUBVOL_ROOTREF _IOWR(BTRFS_IOCTL_MAGIC, 61, \
|
#define BTRFS_IOC_GET_SUBVOL_ROOTREF _IOWR(BTRFS_IOCTL_MAGIC, 61, \
|
||||||
|
Loading…
Reference in New Issue
Block a user