linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "btrfs subvolume list" feature request
@ 2014-12-16  2:01 Ali AlipourR
  2014-12-16  5:36 ` Satoru Takeuchi
  0 siblings, 1 reply; 4+ messages in thread
From: Ali AlipourR @ 2014-12-16  2:01 UTC (permalink / raw)
  To: linux-btrfs

Hi

I think it will be to add option to "btrfs subvolume list" command to
also show the property of sub volumes (ro, compression,...)? do this
is possible?

Thanks,
Ali

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "btrfs subvolume list" feature request
  2014-12-16  2:01 "btrfs subvolume list" feature request Ali AlipourR
@ 2014-12-16  5:36 ` Satoru Takeuchi
  2014-12-16  7:52   ` Chris Murphy
  0 siblings, 1 reply; 4+ messages in thread
From: Satoru Takeuchi @ 2014-12-16  5:36 UTC (permalink / raw)
  To: Ali AlipourR, linux-btrfs

Hi Ali,

(2014/12/16 11:01), Ali AlipourR wrote:
> Hi
>
> I think it will be to add option to "btrfs subvolume list" command to
> also show the property of sub volumes (ro, compression,...)? do this
> is possible?

Of course it's possible by writing some code :-D

Is "btrfs property get <subvol>" (and some one liner) insufficient for
your purpose? If you want to just list properties of each subvolumes
instead of listing properties with existing fields, it can be
accomplished as follows.

===============================================================================
# btrfs sub list /btrfstest
# btrfs sub cre /btrfstest/sub1
Create subvolume '/btrfstest/sub1'
# btrfs sub cre /btrfstest/sub2
Create subvolume '/btrfstest/sub2'
# btrfs sub list /btrfstest/
ID 382 gen 39625 top level 5 path sub1
ID 383 gen 39626 top level 5 path sub2
# for i in $(btrfs sub list /btrfstest | cut -d ' ' -f 9) ; do echo -n $i': ' ; btrfs prop get /btrfstest/$i ; done
sub1    ro=false
sub2    ro=false
===============================================================================

Thanks,
Satoru

>
> Thanks,
> Ali
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "btrfs subvolume list" feature request
  2014-12-16  5:36 ` Satoru Takeuchi
@ 2014-12-16  7:52   ` Chris Murphy
  2014-12-16  9:25     ` Satoru Takeuchi
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Murphy @ 2014-12-16  7:52 UTC (permalink / raw)
  Cc: Btrfs BTRFS

On Mon, Dec 15, 2014 at 10:36 PM, Satoru Takeuchi
<takeuchi_satoru@jp.fujitsu.com> wrote:

> Is "btrfs property get <subvol>" (and some one liner) insufficient for
> your purpose?

I was not previously aware of btrfs property, thanks for mentioning
this. man btrfs does not list the property command; although man btrfs
property does explain it. So now I'm wondering what other commands
might not be listed in man btrfs.


-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "btrfs subvolume list" feature request
  2014-12-16  7:52   ` Chris Murphy
@ 2014-12-16  9:25     ` Satoru Takeuchi
  0 siblings, 0 replies; 4+ messages in thread
From: Satoru Takeuchi @ 2014-12-16  9:25 UTC (permalink / raw)
  To: Chris Murphy; +Cc: Btrfs BTRFS

Hi Chris,

(2014/12/16 16:52), Chris Murphy wrote:
> On Mon, Dec 15, 2014 at 10:36 PM, Satoru Takeuchi
> <takeuchi_satoru@jp.fujitsu.com> wrote:
>
>> Is "btrfs property get <subvol>" (and some one liner) insufficient for
>> your purpose?
>
> I was not previously aware of btrfs property, thanks for mentioning
> this. man btrfs does not list the property command; although man btrfs
> property does explain it. So now I'm wondering what other commands
> might not be listed in man btrfs.

I dug into it and found that only btrfs-property is
missing subcommand, at least in devel/integration-20141204
branch.

I'll submit a patch which fixes this problem later.

Thanks,
Satoru


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-16  9:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16  2:01 "btrfs subvolume list" feature request Ali AlipourR
2014-12-16  5:36 ` Satoru Takeuchi
2014-12-16  7:52   ` Chris Murphy
2014-12-16  9:25     ` Satoru Takeuchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).