public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: TARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
To: linux-btrfs@vger.kernel.org, chris.mason@oracle.com,
	zheng.yan@oracle.com
Subject: [PATCH] Snapshot/subvolume listing feature
Date: Mon, 16 Nov 2009 10:42:00 +0900	[thread overview]
Message-ID: <4B00ADE8.4090205@jp.fujitsu.com> (raw)

I made Snapshot/subvolume listing feature.

This feature consists of two patches, for kernel(ioctl),
and for progs(btrfsctl). I send these two patches as response
of this mail soon.

New option '-l' is introduced to btrfsctl for listing.

If this option is specified, btrfsctl call new ioctl. New ioctl
searches root tree and enumerates subtrees. For each subtrees,
ioctl searches directory path to tree root, and enumerates
more descendant until no more subtree is found.

MANPAGE-like option description and examples are as follows.

 OPTIONS
 	-l _file_
 		List all snapshot/subvolume directories under a tree
 		which _file_ belongs to.

 EXAMPLES
 	# btrfsctl -l /work/btrfs
    Base path = /work/btrfs/
    No.	   Tree ID	Subvolume Relative Path
     1	       256	ss1/
     2	       257	ss2/
     3	       258	svs1/ss1/
     4	       259	svs1/ss2/
     5	       260	svs2/ss1/
     6	       261	svs2/ss2/
     7	       262	ss3/
     8	       263	ss4/
     9	       264	sv_pool/
    10	       265	sv_pool/ss01/
    11	       266	sv_pool/ss02/
    12	       267	sv_pool/ss03/
    13	       268	sv_pool/ss04/
    14	       269	sv_pool/ss05/
    15	       270	sv_pool/ss06/
    16	       271	sv_pool/ss07/
    17	       272	sv_pool/ss08/
    18	       273	sv_pool/ss09/
    19	       274	sv_pool/ss10/
 operation complete
 Btrfs v0.19-9-gd67dad2

Regards,
taruisi


             reply	other threads:[~2009-11-16  1:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16  1:42 TARUISI Hiroaki [this message]
2009-11-16  1:44 ` [PATCH] Subvolume Listing feature for ioctl TARUISI Hiroaki
2009-11-16  1:45 ` [PATCH] Subvolume Listing feature for btrfsctl TARUISI Hiroaki
2009-11-16  3:06 ` [PATCH] Snapshot/subvolume listing feature TARUISI Hiroaki
2009-11-16  8:15 ` Yan, Zheng 
2009-11-16  8:58   ` TARUISI Hiroaki
2009-11-16 13:00     ` Andrey Kuzmin
2009-11-18  5:39     ` TARUISI Hiroaki
2009-11-18  5:42       ` [PATCH] Subvolume listing feature for ioctl TARUISI Hiroaki
2009-12-11 20:57         ` Josef Bacik
2009-12-12  0:31           ` TARUISI Hiroaki
2009-11-18  5:43       ` [PATCH] Subvolume listing feature for btrfsctl TARUISI Hiroaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B00ADE8.4090205@jp.fujitsu.com \
    --to=taruishi.hiroak@jp.fujitsu.com \
    --cc=chris.mason@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zheng.yan@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox