You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Btrfs subvolumes don't need to be mounted. They are always accessible at the location where they are created. This is quite common for nested subvolumes (beyond the top-level ones). For example, consider the following subvolume layout, as it may appear on the btrfs volume itself:
/
|- +subvolumes
|- root
|- var
| |- log
|- home
In this case, the following mountpoints would be specified in /etc/fstab (or the mount units) for our images:
Making the mountpoint an optional property also allows users to simplify their mount structure by creating only a single subvolume with a mountpoint and then structuring their subvolumes under that:
[1] Mount options might be a reason to have a subvolume mounted at its original path, however this doesn't work for most options currently:
Most mount options apply to the whole filesystem and only options in the first mounted subvolume will take effect. This is due to lack of implementation and may change in the future. This means that (for example) you can’t set per-subvolume nodatacow, nodatasum, or compress using mount options. This should eventually be fixed, but it has proved to be difficult to implement correctly within the Linux VFS framework.
Btrfs subvolumes don't need to be mounted. They are always accessible at the location where they are created. This is quite common for nested subvolumes (beyond the top-level ones). For example, consider the following subvolume layout, as it may appear on the btrfs volume itself:
In this case, the following mountpoints would be specified in
/etc/fstab
(or the mount units) for our images:The third line for
/var/log
is unnecessary [1].Making the mountpoint an optional property also allows users to simplify their mount structure by creating only a single subvolume with a mountpoint and then structuring their subvolumes under that:
requiring only
(or no fstab at all).
[1] Mount options might be a reason to have a subvolume mounted at its original path, however this doesn't work for most options currently:
https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#btrfs-specific-mount-options
The text was updated successfully, but these errors were encountered: