mount.zfs.8: modernise

No changes to the text itself

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12111
This commit is contained in:
наб 2021-05-24 18:15:26 +02:00 committed by Brian Behlendorf
parent f3222062c0
commit bc7792cad2
1 changed files with 69 additions and 75 deletions

View File

@ -22,123 +22,117 @@
.\" .\"
.\" Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved. .\" Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved.
.\" .\"
.TH MOUNT.ZFS 8 "Aug 24, 2020" OpenZFS .Dd May 24, 2021
.Dt MOUNT.ZFS 8
.SH NAME .Os
mount.zfs \- mount a ZFS filesystem .
.SH SYNOPSIS .Sh NAME
.LP .Nm mount.zfs
.BI "mount.zfs [\-sfnvh] [\-o " options "]" " dataset mountpoint .Nd mount a ZFS filesystem
.Sh SYNOPSIS
.SH DESCRIPTION .Nm
.BR mount.zfs .Op Fl sfnvh
.Op Fl o Ar options
.Ar dataset
.Ar mountpoint
.
.Sh DESCRIPTION
.Nm
is part of the zfsutils package for Linux. It is a helper program that is part of the zfsutils package for Linux. It is a helper program that
is usually invoked by the is usually invoked by the
.BR mount (8) .Xr mount 8
or or
.BR zfs (8) .Xr zfs 8
commands to mount a ZFS dataset. commands to mount a ZFS dataset.
.Pp
All All
.I options .Ar options
are handled according to the FILESYSTEM INDEPENDENT MOUNT OPTIONS are handled according to the FILESYSTEM INDEPENDENT MOUNT OPTIONS
section in the section in the
.BR mount (8) .Xr mount 8
manual, except for those described below. manual, except for those described below.
.Pp
The The
.I dataset .Ar dataset
parameter is a ZFS filesystem name, as output by the parameter is a ZFS filesystem name, as output by the
.B "zfs list -H -o name .Nm zfs Cm load-key Fl h Fl o Ar name
command. This parameter never has a leading slash character and is command. This parameter never has a leading slash character and is
not a device name. not a device name.
.Pp
The The
.I mountpoint .Ar mountpoint
parameter is the path name of a directory. parameter is the path name of a directory.
.
.Sh OPTIONS
.SH OPTIONS .Bl -tag -width "-o xa"
.TP .It Fl s
.BI "\-s"
Ignore bad or sloppy mount options. Ignore bad or sloppy mount options.
.TP .It Fl f
.BI "\-f"
Do a fake mount; do not perform the mount operation. Do a fake mount; do not perform the mount operation.
.TP .It Fl n
.BI "\-n"
Do not update the /etc/mtab file. Do not update the /etc/mtab file.
.TP .It Fl v
.BI "\-v"
Increase verbosity. Increase verbosity.
.TP .It Fl h
.BI "\-h"
Print the usage message. Print the usage message.
.TP .It Fl o Ar context
.BI "\-o context"
This flag sets the SELinux context for all files in the filesystem This flag sets the SELinux context for all files in the filesystem
under that mountpoint. under that mountpoint.
.TP .It Fl o Ar fscontext
.BI "\-o fscontext"
This flag sets the SELinux context for the filesystem being mounted. This flag sets the SELinux context for the filesystem being mounted.
.TP .It Fl o Ar defcontext
.BI "\-o defcontext"
This flag sets the SELinux context for unlabeled files. This flag sets the SELinux context for unlabeled files.
.TP .It Fl o Ar rootcontext
.BI "\-o rootcontext"
This flag sets the SELinux context for the root inode of the filesystem. This flag sets the SELinux context for the root inode of the filesystem.
.TP .It Fl o Ar legacy
.BI "\-o legacy"
This private flag indicates that the This private flag indicates that the
.I dataset .Ar dataset
has an entry in the /etc/fstab file. has an entry in the /etc/fstab file.
.TP .It Fl o Ar noxattr
.BI "\-o noxattr"
This private flag disables extended attributes. This private flag disables extended attributes.
.TP .It Fl o Ar xattr
.BI "\-o xattr
This private flag enables directory-based extended attributes and, if This private flag enables directory-based extended attributes and, if
appropriate, adds a ZFS context to the selinux system policy. appropriate, adds a ZFS context to the selinux system policy.
.TP .It Fl o Ar saxattr
.BI "\-o saxattr
This private flag enables system attributed-based extended attributes and, if This private flag enables system attributed-based extended attributes and, if
appropriate, adds a ZFS context to the selinux system policy. appropriate, adds a ZFS context to the selinux system policy.
.TP .It Fl o Ar dirxattr
.BI "\-o dirxattr
Equivalent to Equivalent to
.BR xattr . .Ar xattr .
.TP .It Fl o Ar zfsutil
.BI "\-o zfsutil"
This private flag indicates that This private flag indicates that
.BR mount (8) .Xr mount 8
is being called by the is being called by the
.BR zfs (8) .Xr zfs 8
command. command.
.El
.SH NOTES .
.Sh NOTES
ZFS conventionally requires that the ZFS conventionally requires that the
.I mountpoint .Ar mountpoint
be an empty directory, but the Linux implementation inconsistently be an empty directory, but the Linux implementation inconsistently
enforces the requirement. enforces the requirement.
.Pp
The The
.BR mount.zfs .Nm
helper does not mount the contents of zvols. helper does not mount the contents of zvols.
.
.SH FILES .Sh FILES
.TP 18n .Bl -tag -width "/etc/fstab"
.I /etc/fstab .It Pa /etc/fstab
The static filesystem table. The static filesystem table.
.TP .It Pa /etc/mtab
.I /etc/mtab
The mounted filesystem table. The mounted filesystem table.
.SH "AUTHORS" .El
.
.Sh AUTHORS
The primary author of The primary author of
.BR mount.zfs .Nm
is Brian Behlendorf <behlendorf1@llnl.gov>. is Brian Behlendorf <behlendorf1@llnl.gov>.
.Pp
This man page was written by Darik Horn <dajhorn@vanadac.com>. This man page was written by Darik Horn <dajhorn@vanadac.com>.
.SH "SEE ALSO" .
.BR fstab (5), .Sh SEE ALSO
.BR mount (8), .Xr fstab 5 ,
.BR zfs (8) .Xr mount 8 ,
.Xr zfs 8