[systemd-devel] [PATCH v2] readahead: use BTRFS_IOC_DEFRAG_RANGE

Andrey Borzenkov arvidjaar at gmail.com
Mon Jul 21 19:29:31 PDT 2014


В Mon, 21 Jul 2014 18:15:37 +0300
Timofey Titovets <nefelim4ag at gmail.com> пишет:

> Zbyszek, i research problem and i found what in btrfs.h
> struct btrfs_ioctl_defrag_range_args  not defined
> This acceptable if i add it in missing.h like:
> /* btrfs_ioctl_defrag_range_args now 21.07.2014
>  * not defined in btrfs.h and duplicated from <kernel>/fs/btrfs/ctree.h
>  */
> #ifdef HAVE_LINUX_BTRFS_H
> struct btrfs_ioctl_defrag_range_args {
>         uint64_t start;         /* start byte = 0 */
>         uint64_t len;           /* whole file uint64_t-1 */
>         uint64_t flags;         /* start_io 2 */
>         uint32_t extent_thresh; /* 0 */
>         uint32_t compress_type;
>         uint32_t unused[4];
> };
> #endif
> 

I think it should really be discussed on btrfs list. It must be
properly exported to user space if user space is going to use it.


More information about the systemd-devel mailing list