[systemd-devel] [PATCH] missing: add more btrfs defines

Lennart Poettering lennart at poettering.net
Tue Jun 9 12:21:13 PDT 2015


On Tue, 02.06.15 11:08, Michael Olbrich (m.olbrich at pengutronix.de) wrote:

For the sake of the archives, this got merged as:

https://github.com/systemd/systemd/pull/12

> ---
>  src/shared/missing.h | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/src/shared/missing.h b/src/shared/missing.h
> index 919400949138..be7f6186fcfb 100644
> --- a/src/shared/missing.h
> +++ b/src/shared/missing.h
> @@ -269,6 +269,11 @@ struct btrfs_qgroup_inherit {
>          __u64 qgroups[0];
>  };
>  
> +struct btrfs_ioctl_qgroup_limit_args {
> +        __u64 qgroupid;
> +        struct btrfs_qgroup_limit lim;
> +};
> +
>  struct btrfs_ioctl_vol_args_v2 {
>          __s64 fd;
>          __u64 transid;
> @@ -360,6 +365,14 @@ struct btrfs_ioctl_clone_range_args {
>          __u64 src_offset, src_length;
>          __u64 dest_offset;
>  };
> +
> +#define BTRFS_QUOTA_CTL_ENABLE  1
> +#define BTRFS_QUOTA_CTL_DISABLE 2
> +#define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3
> +struct btrfs_ioctl_quota_ctl_args {
> +        __u64 cmd;
> +        __u64 status;
> +};
>  #endif
>  
>  #ifndef BTRFS_IOC_DEFRAG
> @@ -367,6 +380,11 @@ struct btrfs_ioctl_clone_range_args {
>                                   struct btrfs_ioctl_vol_args)
>  #endif
>  
> +#ifndef BTRFS_IOC_RESIZE
> +#define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, \
> +                                 struct btrfs_ioctl_vol_args)
> +#endif
> +
>  #ifndef BTRFS_IOC_CLONE
>  #define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int)
>  #endif
> @@ -424,6 +442,16 @@ struct btrfs_ioctl_clone_range_args {
>                                   struct btrfs_ioctl_vol_args)
>  #endif
>  
> +#ifndef BTRFS_IOC_QUOTA_CTL
> +#define BTRFS_IOC_QUOTA_CTL _IOWR(BTRFS_IOCTL_MAGIC, 40, \
> +                               struct btrfs_ioctl_quota_ctl_args)
> +#endif
> +
> +#ifndef BTRFS_IOC_QGROUP_LIMIT
> +#define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \
> +                               struct btrfs_ioctl_qgroup_limit_args)
> +#endif
> +
>  #ifndef BTRFS_FIRST_FREE_OBJECTID
>  #define BTRFS_FIRST_FREE_OBJECTID 256
>  #endif
> -- 
> 2.1.4
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list