Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-10-02 Thread David Sterba
On Sat, Sep 30, 2017 at 03:08:13PM +0200, Holger Hoffstätte wrote: > Hi, > > When listing subvolumes it can be useful to filter out any snapshots; > surprisingly enough I couldn't find an option to do this easily, only > the opposite (list only snapshots). > > A "root" subvolume is identified by

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-10-01 Thread Misono, Tomohiro
On 2017/10/01 3:17, Holger Hoffstätte wrote: > On 09/30/17 19:56, Holger Hoffstätte wrote: >> shell hackery as alternative. Anyway, I was sure that at the time the >> other letters sounded even worse/were taken, but that may just have been >> in my head. ;-) >> >> I just rechecked and -S is still

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Graham Cobb
On 30/09/17 19:17, Holger Hoffstätte wrote: > On 09/30/17 19:56, Holger Hoffstätte wrote: >> shell hackery as alternative. Anyway, I was sure that at the time the >> other letters sounded even worse/were taken, but that may just have been >> in my head. ;-) >> >> I just rechecked and -S is still av

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Nicholas D Steeves
On Sat, Sep 30, 2017 at 07:56:25PM +0200, Holger Hoffstätte wrote: > On 09/30/17 18:37, Graham Cobb wrote: > > On 30/09/17 14:08, Holger Hoffstätte wrote: > >> A "root" subvolume is identified by a null parent UUID, so adding a new > >> subvolume filter and flag -P ("Parent") does the trick. > >

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Holger Hoffstätte
On 09/30/17 19:56, Holger Hoffstätte wrote: > shell hackery as alternative. Anyway, I was sure that at the time the > other letters sounded even worse/were taken, but that may just have been > in my head. ;-) > > I just rechecked and -S is still available, so that's good. Except that it isn't rea

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Holger Hoffstätte
On 09/30/17 18:37, Graham Cobb wrote: > On 30/09/17 14:08, Holger Hoffstätte wrote: >> A "root" subvolume is identified by a null parent UUID, so adding a new >> subvolume filter and flag -P ("Parent") does the trick. > > I don't like the naming. The flag you are proposing is really nothing to >

Re: [PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Graham Cobb
On 30/09/17 14:08, Holger Hoffstätte wrote: > A "root" subvolume is identified by a null parent UUID, so adding a new > subvolume filter and flag -P ("Parent") does the trick. I don't like the naming. The flag you are proposing is really nothing to do with whether a subvolume is a parent or not:

[PATCH] btrfs-progs: add option to only list parent subvolumes

2017-09-30 Thread Holger Hoffstätte
Hi, When listing subvolumes it can be useful to filter out any snapshots; surprisingly enough I couldn't find an option to do this easily, only the opposite (list only snapshots). A "root" subvolume is identified by a null parent UUID, so adding a new subvolume filter and flag -P ("Parent") does