Bug 208789
Summary: | nested subvolume results in empty folder when making snapshot of parent | ||
---|---|---|---|
Product: | File System | Reporter: | Stuart Smith (stuartksmith) |
Component: | btrfs | Assignee: | BTRFS virtual assignee (fs_btrfs) |
Status: | NEW --- | ||
Severity: | normal | CC: | dsterba |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.3, 5.4, 5.6 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Stuart Smith
2020-08-03 16:25:10 UTC
This is known and documented. Snapshots are not recursive but have to represent the original subvolume completely, including any other nested subvolume. For that there's the placeholder, with specific inode number 2. It can be deleted by rmdir. If you need to recreate original subvolume layout from a snapshot, the empty subvolumes need to be replaced by proper subvolumes. As this requires some steps, this is managed by tools like snapper. The documentation about that is mainly on the wiki, I haven't seen this explicitli mentioned in the manual page, so this could be improved. |