aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-11-18 03:49:56 +0000
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:31 -0400
commita418b24318723c0a45fe1f1b76b9286baa36c537 (patch)
treec2a4138d73454235ca1757ed0a8df561f5cb615c /ioctl.h
parentb8802ae3fa0c70d4cfc3287ed07479925973b0ac (diff)
downloadbtrfs-progs-a418b24318723c0a45fe1f1b76b9286baa36c537.tar.gz
btrfs-progs-a418b24318723c0a45fe1f1b76b9286baa36c537.tar.xz
btrfs-progs-a418b24318723c0a45fe1f1b76b9286baa36c537.zip
Update for lzo support
[Btrfs-Progs][V2] Update for lzo support - Add incompat flag, otherwise btrfs-progs will report error when operating on btrfs filesystems mounted with lzo option. - Update man page. - Allow to turn on lzo compression for defrag operation: # btrfs filesystem defragment -c[zlib, lzo] <file> Note: "-c zlib" will fail, because that's how getopt() works for optional arguments. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ioctl.h b/ioctl.h
index 776d7a9..bb7b9e0 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -116,8 +116,15 @@ struct btrfs_ioctl_defrag_range_args {
*/
__u32 extent_thresh;
+ /*
+ * which compression method to use if turning on compression
+ * for this defrag operation. If unspecified, zlib will
+ * be used
+ */
+ __u32 compress_type;
+
/* spare for later */
- __u32 unused[5];
+ __u32 unused[4];
};
struct btrfs_ioctl_space_info {