Using Temporary Mount Properties
If any of the mount options described in the preceding section are set explicitly by using the -o
option with the zfs mount
command, the associated property value is temporarily overridden. These property values are reported as temporary
by the zfs get
command and revert back to their original values when the file system is unmounted. If a property value is changed while the file system is mounted, the change takes effect immediately, overriding any temporary setting.
In the following example, the read-only mount option is temporarily set on the
tank/home/nneke
file system. The file system is assumed to
be unmounted.
$ zfs mount -o ro users/home/nneke
To temporarily change a property value on a file system that is currently mounted, you must use the special remount
option. In the following example, the atime
property is temporarily changed to off
for a file system that is currently mounted:
$ zfs mount -o remount,noatime users/home/nneke NAME PROPERTY VALUE SOURCE users/home/nneke atime off temporary $ zfs get atime users/home/perrin
For more information about the zfs mount
command, see the
zfs
(8) man page.