meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:fs:btrfs:subvolumes [2021/03/02 09:46] – created niziak | linux:fs:btrfs:subvolumes [2024/07/11 20:07] (current) – niziak | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * Install script [[https:// | * Install script [[https:// | ||
| + | ==== Mixed mount options ==== | ||
| + | NOT SUPPORTED YET: | ||
| + | In general, btrfs doesn' | ||
| + | per-subvolume mount options. | ||
| + | in the kernel was designed to allow it, and it's on the roadmap, it just | ||
| + | hasn't been done... yet. | ||
| + | |||
| + | To make workaround it is possible to use attributes on files or directories: | ||
| + | * C disable COW feature (for newly created directories or zero sized files). New files in directores with C attributes will be created with C attrib. But not subdirectories. | ||
| + | * c enable compression | ||
| + | |||
| + | ==== Move data between subvolumes ==== | ||
| + | See '' | ||
| + | When --reflink[=always] is specified, perform a lightweight copy, where the data blocks are copied | ||
| + | If this is not possible | ||
| + | |||
| + | <code bash> | ||
| + | cp -pr --reflink=always srcDirectory dstDirectory/ | ||
| + | rm -r srcDirectory | ||
| + | </ | ||