[PATCH 8/8] btrfs-progs: balance: add stripes filter

2015-10-16 Thread David Sterba
From: Gabríel Arthúr Pétursson Add new balance filter 'stripes=' to process only chunks that are spread accross given number of chunks. The range must be specified with both values, but they can be the same to denote exact number of stripes. Signed-off-by: Gabríel Arthúr Pétursson [ reworked a

[PATCH 7/7] btrfs-progs: balance: add stripes filter

2015-10-13 Thread David Sterba
From: Gabríel Arthúr Pétursson Add new balance filter 'stripes=' to process only chunks that are spread accross given number of chunks. The range must be specified with both values, but they can be the same to denote exact number of stripes. Signed-off-by: Gabríel Arthúr Pétursson [ reworked a

Re: Add stripes filter

2015-10-12 Thread David Sterba
On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > The attached patches to linux and btrfs-progs add support for filtering > based on the number of strips in a block when balancing. FYI, I'm going to make the fixups myself as they're mostly cosmetic and prepare this patch

Re: [PATCH] btrfs: add stripes filter

2015-09-30 Thread David Sterba
Hi, thanks for the patch. The stripe filter is really helpful. There are some minor comments below but otherwise the patch looks good. On Mon, Sep 28, 2015 at 10:32:41PM +, Gabríel Arthúr Pétursson wrote: > --- a/fs/btrfs/ctree.h > +++ b/fs/btrfs/ctree.h > @@ -849,7 +849,11 @@ struct btrfs_di

Re: Add stripes filter

2015-09-30 Thread David Sterba
On Tue, Sep 29, 2015 at 12:21:39PM +, Hugo Mills wrote: > On Tue, Sep 29, 2015 at 08:10:19AM -0400, Austin S Hemmelgarn wrote: > > On 2015-09-29 08:00, David Sterba wrote: > > >On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > > >>The attached patches to linux and btrf

Re: Add stripes filter

2015-09-30 Thread David Sterba
On Tue, Sep 29, 2015 at 08:10:19AM -0400, Austin S Hemmelgarn wrote: > On 2015-09-29 08:00, David Sterba wrote: > > On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > >> The attached patches to linux and btrfs-progs add support for filtering > >> based on the number of stri

Re: Add stripes filter

2015-09-29 Thread Hugo Mills
On Tue, Sep 29, 2015 at 08:10:19AM -0400, Austin S Hemmelgarn wrote: > On 2015-09-29 08:00, David Sterba wrote: > >On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > >>The attached patches to linux and btrfs-progs add support for filtering > >>based on the number of strips

Re: Add stripes filter

2015-09-29 Thread Austin S Hemmelgarn
On 2015-09-29 08:00, David Sterba wrote: On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: The attached patches to linux and btrfs-progs add support for filtering based on the number of strips in a block when balancing. What usecase do you want to address? As I understa

Re: Add stripes filter

2015-09-29 Thread David Sterba
On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > The attached patches to linux and btrfs-progs add support for filtering > based on the number of strips in a block when balancing. What usecase do you want to address? As I understand it, this would help the raid56 rebalan

[PATCH] btrfs-progs: add stripes filter

2015-09-28 Thread Gabríel Arthúr Pétursson
--- Documentation/btrfs-balance.asciidoc | 4 cmds-balance.c | 24 ioctl.h | 6 +- volumes.h| 1 + 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfs-

[PATCH] btrfs: add stripes filter

2015-09-28 Thread Gabríel Arthúr Pétursson
--- fs/btrfs/ctree.h | 6 +- fs/btrfs/volumes.c | 18 ++ fs/btrfs/volumes.h | 1 + include/uapi/linux/btrfs.h | 6 +- 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 938efe3..78573e5 1006

Re: Add stripes filter

2015-09-28 Thread Omar Sandoval
On Mon, Sep 28, 2015 at 05:57:05PM +, Gabríel Arthúr Pétursson wrote: > Hello everyone! > > The attached patches to linux and btrfs-progs add support for filtering > based on the number of strips in a block when balancing. > > This is my first attempt at kernel development, I'd love if you co

Add stripes filter

2015-09-28 Thread Gabríel Arthúr Pétursson
Hello everyone! The attached patches to linux and btrfs-progs add support for filtering based on the number of strips in a block when balancing. This is my first attempt at kernel development, I'd love if you could please point out any mistakes that I've made. Thanks, Gabríel P.S. I could not f