On Sat, Sep 09, 2017 at 10:35:51AM +0200, Ulli Horlacher wrote: > As I am writing some documentation abount creating snapshots: > Is there a generic name for both volume and subvolume root? > > Example: > > root@fex:~# btrfs subvol show /mnt > ERROR: not a subvolume: /mnt > > root@fex:~# btrfs subvol show /mnt/test > /mnt/test is toplevel subvolume > > root@fex:~# btrfs subvol show /mnt/test/data > /mnt/test/data > Name: data > UUID: b32a5949-dfd6-ef45-8616-34ae4cdf6fb8 > (...) > > root@fex:~# btrfs subvol show /mnt/test/data/sw > ERROR: not a subvolume: /mnt/test/data/sw > > > I can create snapshots of /mnt/test and /mnt/test/data, but not of /mnt > and /mnt/test/data/sw > > Is there a simple name for directories I can snapshot?
Subvolume. If you can snapshot it, it's a subvolume. Some subvolumes are also snapshots. (And all snapshots are subvolumes). The subvolume with ID 5 (or ID 0, which is an alias) is the "top level subvolume", and has the unique property that it can't be renamed, deleted or replaced, where all other subvolumes can be. Hugo. -- Hugo Mills | Well, you don't get to be a kernel hacker simply by hugo@... carfax.org.uk | looking good in Speedos. http://carfax.org.uk/ | PGP: E2AB1DE4 | Rusty Russell
signature.asc
Description: Digital signature