[systemd-devel] [PATCH v2] readahead: use BTRFS_IOC_DEFRAG_RANGE
Timofey Titovets
nefelim4ag at gmail.com
Mon Jul 21 08:15:37 PDT 2014
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
--
Best regards,
Timofey.
More information about the systemd-devel
mailing list