Re: [PATCH] Btrfs-progs: add dedup subcommand

2014-01-17 Thread David Sterba
On Wed, Jan 15, 2014 at 09:35:17AM +0800, Liu Bo wrote: @@ -430,6 +430,15 @@ struct btrfs_ioctl_get_dev_stats { __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */ }; +/* deduplication control ioctl modes */ +#define BTRFS_DEDUP_CTL_ENABLE 1 +#define

Re: [PATCH] Btrfs-progs: add dedup subcommand

2014-01-14 Thread David Sterba
On Mon, Dec 30, 2013 at 04:12:55PM +0800, Liu Bo wrote: --- a/ctree.h +++ b/ctree.h @@ -470,6 +470,7 @@ struct btrfs_super_block { #define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF (1ULL 6) #define BTRFS_FEATURE_INCOMPAT_RAID56(1ULL 7) #define

Re: [PATCH] Btrfs-progs: add dedup subcommand

2014-01-14 Thread Liu Bo
On Tue, Jan 14, 2014 at 06:34:19PM +0100, David Sterba wrote: On Mon, Dec 30, 2013 at 04:12:55PM +0800, Liu Bo wrote: --- a/ctree.h +++ b/ctree.h @@ -470,6 +470,7 @@ struct btrfs_super_block { #define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF (1ULL 6) #define

[PATCH] Btrfs-progs: add dedup subcommand

2013-12-30 Thread Liu Bo
This adds deduplication subcommands, 'btrfs dedup command path', including enable/disable/on/off. - btrfs dedup enable Create the dedup tree, and it's the very first step when you're going to use the dedup feature. - btrfs dedup disable Delete the dedup tree, after this we're not able to use

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-12-30 Thread Martin Steigerwald
Am Montag, 30. Dezember 2013, 16:12:55 schrieben Sie: This adds deduplication subcommands, 'btrfs dedup command path', including enable/disable/on/off. Nice. Looking forward to test it. - btrfs dedup enable Create the dedup tree, and it's the very first step when you're going to use the

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-12-30 Thread Liu Bo
On Mon, Dec 30, 2013 at 12:34:42PM +0100, Martin Steigerwald wrote: Am Montag, 30. Dezember 2013, 16:12:55 schrieben Sie: This adds deduplication subcommands, 'btrfs dedup command path', including enable/disable/on/off. Nice. Looking forward to test it. Well, I just got a report from

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-12-30 Thread Kai Krakow
Martin Steigerwald mar...@lichtvoll.de schrieb: - btrfs dedup disable Delete the dedup tree, after this we're not able to use dedup any more unless you enable it again. So if deduplication has been switched on for a while, btrfs dedup disable will cause BTRFS to undo the deduplication (and

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-08-01 Thread Liu Bo
On Wed, Jul 31, 2013 at 06:30:37PM +0200, Stefan Behrens wrote: On Wed, 31 Jul 2013 23:37:46 +0800, Liu Bo wrote: This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem.

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-08-01 Thread Mark Fasheh
On Wed, Jul 31, 2013 at 11:37:46PM +0800, Liu Bo wrote: This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem. This seems to me like it should be a switch on btrfstune instead of a

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-08-01 Thread Liu Bo
On Thu, Aug 01, 2013 at 03:01:37PM -0700, Mark Fasheh wrote: On Wed, Jul 31, 2013 at 11:37:46PM +0800, Liu Bo wrote: This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem.

[PATCH] Btrfs-progs: add dedup subcommand

2013-07-31 Thread Liu Bo
This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem. Signed-off-by: Liu Bo bo.li@oracle.com --- Makefile |2 +- btrfs.c |1 + cmds-dedup.c | 101

Re: [PATCH] Btrfs-progs: add dedup subcommand

2013-07-31 Thread Stefan Behrens
On Wed, 31 Jul 2013 23:37:46 +0800, Liu Bo wrote: This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem. Signed-off-by: Liu Bo bo.li@oracle.com --- Makefile |2 +-

[PATCH] Btrfs-progs: add dedup subcommand

2013-05-14 Thread Liu Bo
This aims to add deduplication subcommand, 'btrfs dedup command path', ie. register/unregister'. It can be used to enable or disable dedup support for a filesystem. Signed-off-by: Liu Bo bo.li@oracle.com --- Makefile |2 +- btrfs.c |1 + cmds-dedup.c | 101