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