meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:fs:btrfs:subvolumes [2021/03/02 09:46] – created niziaklinux:fs:btrfs:subvolumes [2024/07/11 20:07] (current) niziak
Line 21: Line 21:
   * Install script [[https://github.com/agronick/btrfs-size]]   * Install script [[https://github.com/agronick/btrfs-size]]
  
 +==== Mixed mount options ====
 +NOT SUPPORTED YET:
 +  In general, btrfs doesn't _yet_ have the runtime infrastructure to handle 
 +  per-subvolume mount options.  The on-device format and general approach 
 +  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 ''cp'' command arg:
 +  When --reflink[=always] is specified, perform a lightweight copy, where the data blocks are copied  only  when  modified.
 +  If  this  is  not  possible  the  copy  fails,  or  if --reflink=auto is specified, fall back to a standard copy.
 +
 +<code bash>
 +cp -pr --reflink=always srcDirectory dstDirectory/
 +rm -r srcDirectory
 +</code>