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

Lennart Poettering lennart at poettering.net
Thu Aug 14 10:29:12 PDT 2014


On Tue, 22.07.14 06:29, Andrey Borzenkov (arvidjaar at gmail.com) wrote:

> В 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.

Well, the ioctls of btrfs seldom come with proper userpace headers
unfortunately...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list