linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Piotr Szymaniak <szarpaj@grubelek.pl>
To: linux-btrfs@vger.kernel.org
Subject: Re: find subvolume directories
Date: Mon, 15 Jul 2019 15:22:28 +0200	[thread overview]
Message-ID: <20190715132228.GF4212@pontus.sran> (raw)
In-Reply-To: <20190713112832.GA30696@tik.uni-stuttgart.de>

On Sat, Jul 13, 2019 at 01:28:32PM +0200, Ulli Horlacher wrote:
> On Sat 2019-07-13 (14:10), Andrei Borzenkov wrote:
> 
> > >> It is entirely up to the user who creates it how subvolumes are named and
> > >> structured. You can well have /foo, /bar, /baz mounted as /, /var and
> > >> /home.
> > > 
> > > And how can I find them in my mounted filesystem?
> > > THIS is my problem.
> > 
> > I am not sure what problem you are trying to solve
> 
> I want a list of all subvolumes directories (which I can access with UNIX
> tools like cd and ls or btrfs subvolume ...).

Hi,

what about btrfs sub list [options]? (see man btrfs-subvolume)

You can make ie.:
root@ed:~# btrfs sub list -a / | head -10
ID 259 gen 142795 top level 5 path <FS_TREE>/@rut
ID 267 gen 1599 top level 259 path @rut/BUP/190417-1748_Image_SYSVOL
ID 268 gen 2516 top level 259 path @rut/BUP/190417-1750_Image_C
ID 326 gen 1599 top level 259 path @rut/BUP/190418-1009
ID 359 gen 1599 top level 259 path @rut/BUP/190418-1751
ID 361 gen 1599 top level 259 path @rut/BUP/190419-0812
ID 364 gen 1599 top level 259 path @rut/BUP/190423-1025
ID 369 gen 2086 top level 259 path @rut/BUP/190423-2232

But, I'm a bit like Andrei, and not sure what are you looking for. You
already asked about "mounted" and then about "list of all subvols"...
So you want to find mounted subvolumes or all subvolumes or all mounted
subvolumes or ...?


Best regards,
Piotr Szymaniak.
-- 
Najgoretsze miejsce w piekle szykowane jest nie tym, ktorzy zabijaja,
ale tym, ktorzy sie bezczynnie temu przygladaja.
  -- Dante Alighieri

  parent reply	other threads:[~2019-07-15 13:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 23:17 find subvolume directories Ulli Horlacher
2019-07-13  3:59 ` Andrei Borzenkov
2019-07-13  8:27   ` Ulli Horlacher
2019-07-13 11:10     ` Andrei Borzenkov
2019-07-13 11:28       ` Ulli Horlacher
2019-07-13 15:08         ` Andrei Borzenkov
2019-07-15 13:22         ` Piotr Szymaniak [this message]
2019-07-15 22:40           ` Ulli Horlacher
2019-07-15 23:58             ` [RFC] a standard user-friendly way to find a snapshot in nested subvolumes [was: find subvolume directories] Nicholas D Steeves
2019-07-16  0:41               ` Ulli Horlacher
2019-07-15 11:39       ` find subvolume directories Ulli Horlacher
2019-07-15 11:33 ` Ulli Horlacher
2019-07-16 11:04 ` Ulli Horlacher
2019-07-18 12:00 ` Axel Burri
2019-07-18 17:48   ` Andrei Borzenkov
2019-07-22 12:36     ` Axel Burri
2019-07-20  9:27   ` Ulli Horlacher

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=20190715132228.GF4212@pontus.sran \
    --to=szarpaj@grubelek.pl \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).