On 12/21/20 9:27 PM, Remi Gauvin wrote:
On 2020-12-21 3:14 p.m., Goffredo Baroncelli wrote:

A subvolume can be moved everywhere with a simple 'mv' command.


No, they can not,, try this again with a *read only* snapshot


The topic was about why put the subvolumes/snapshots in another subvolume.

A readonly snapshot can't be moved from its parent (doesn't matter if it is a 
diretory or a subvolume). This is true. But the subvolume containing a readonly 
snapshot can be moved :

$ btrfs sub crea sub1
Create subvolume './sub1'
$ btrfs sub crea sub2
Create subvolume './sub2'
$ mkdir dir1
$ btrfs sub snap -r sub2 sub1/snap2
Create a readonly snapshot of 'sub2' in 'sub1/snap2'
$ btrfs sub snap -r sub2 dir1/snap2
Create a readonly snapshot of 'sub2' in 'dir1/snap2'
$ mv sub1 sub1-renamed
$ mv dir1 dir1-renamed



--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

Reply via email to