diff options
author | LOLi <[email protected]> | 2017-07-12 22:05:37 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-07-12 13:05:37 -0700 |
commit | cf8738d85374f51298a0872bcd58257bbb4fda6d (patch) | |
tree | 213e94c15f61f569836e7e0f0fb40727e8cdd4f9 /man/man8 | |
parent | e19572e4cc0b8df95ebf60053029e454592a92d4 (diff) |
Add port of FreeBSD 'volmode' property
The volmode property may be set to control the visibility of ZVOL
block devices.
This allow switching ZVOL between three modes:
full - existing fully functional behaviour (default)
dev - hide partitions on ZVOL block devices
none - not exposing volumes outside ZFS
Additionally the new zvol_volmode module parameter can be used to
control the default behaviour.
This functionality can be used, for instance, on "backup" pools to
avoid cluttering /dev with unneeded zd* devices.
Original-patch-by: mav <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: loli10K <[email protected]>
Signed-off-by: loli10K <[email protected]>
FreeBSD-commit: https://github.com/freebsd/freebsd/commit/dd28e6bb
Closes #1796
Closes #3438
Closes #6233
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zfs.8 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 439c21ac4..44180d603 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -1757,6 +1757,35 @@ when the pool is low on space. For a sparse volume, changes to .Sy volsize are not reflected in the reservation. +.It Sy volmode Ns = Ns Cm default | full | geom | dev | none +This property specifies how volumes should be exposed to the OS. +Setting it to +.Sy full +exposes volumes as fully fledged block devices, providing maximal +functionality. The value +.Sy geom +is just an alias for +.Sy full +and is kept for compatibility. +Setting it to +.Sy dev +hides its partitions. +Volumes with property set to +.Sy none +are not exposed outside ZFS, but can be snapshoted, cloned, replicated, etc, +that can be suitable for backup purposes. +Value +.Sy default +means that volumes exposition is controlled by system-wide tunable +.Va zvol_volmode , +where +.Sy full , +.Sy dev +and +.Sy none +are encoded as 1, 2 and 3 respectively. +The default values is +.Sy full . .It Sy vscan Ns = Ns Sy on Ns | Ns Sy off Controls whether regular files should be scanned for viruses when a file is opened and closed. |