2013-03-12 19:40:55 +00:00
|
|
|
.\"
|
|
|
|
.\" CDDL HEADER START
|
|
|
|
.\"
|
|
|
|
.\" The contents of this file are subject to the terms of the
|
|
|
|
.\" Common Development and Distribution License (the "License").
|
|
|
|
.\" You may not use this file except in compliance with the License.
|
|
|
|
.\"
|
|
|
|
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
|
|
.\" or http://www.opensolaris.org/os/licensing.
|
|
|
|
.\" See the License for the specific language governing permissions
|
|
|
|
.\" and limitations under the License.
|
|
|
|
.\"
|
|
|
|
.\" When distributing Covered Code, include this CDDL HEADER in each
|
|
|
|
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
|
|
.\" If applicable, add the following below this CDDL HEADER, with the
|
|
|
|
.\" fields enclosed by brackets "[]" replaced with your own identifying
|
|
|
|
.\" information: Portions Copyright [yyyy] [name of copyright owner]
|
|
|
|
.\"
|
|
|
|
.\" CDDL HEADER END
|
|
|
|
.\"
|
|
|
|
.\" Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved.
|
|
|
|
.\"
|
2021-05-24 16:15:26 +00:00
|
|
|
.Dd May 24, 2021
|
|
|
|
.Dt MOUNT.ZFS 8
|
|
|
|
.Os
|
|
|
|
.
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mount.zfs
|
|
|
|
.Nd mount a ZFS filesystem
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl sfnvh
|
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ar dataset
|
|
|
|
.Ar mountpoint
|
|
|
|
.
|
|
|
|
.Sh DESCRIPTION
|
2021-05-24 18:26:39 +00:00
|
|
|
The
|
2021-05-24 16:15:26 +00:00
|
|
|
.Nm
|
2021-05-24 18:26:39 +00:00
|
|
|
helper is used by
|
|
|
|
.Xr mount 8
|
|
|
|
to mount filesystem snapshots and
|
|
|
|
.Sy mountpoint= Ns Ar legacy
|
|
|
|
ZFS filesystems, as well as by
|
|
|
|
.Xr zfs 8
|
|
|
|
when the
|
|
|
|
.Ev Em $ZFS_MOUNT_HELPER
|
|
|
|
environment variable is not set.
|
|
|
|
Users should should invoke either
|
2021-05-24 16:15:26 +00:00
|
|
|
.Xr mount 8
|
2013-03-12 19:40:55 +00:00
|
|
|
or
|
2021-05-24 16:15:26 +00:00
|
|
|
.Xr zfs 8
|
2021-05-24 18:26:39 +00:00
|
|
|
in most cases.
|
2021-05-24 16:15:26 +00:00
|
|
|
.Pp
|
|
|
|
.Ar options
|
2021-05-24 18:26:39 +00:00
|
|
|
are handled according to the
|
|
|
|
.Em Temporary Mount Point Properties
|
|
|
|
section in
|
|
|
|
.Xr zfsprops 8 ,
|
|
|
|
except for those described below.
|
2021-05-24 16:15:26 +00:00
|
|
|
.Pp
|
2021-05-24 18:26:39 +00:00
|
|
|
If
|
|
|
|
.Pa /etc/mtab
|
|
|
|
is a regular file and
|
|
|
|
.Fl n
|
|
|
|
was not specified, it will be updated via libmount.
|
2021-05-24 16:15:26 +00:00
|
|
|
.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width "-o xa"
|
|
|
|
.It Fl s
|
2021-05-24 18:26:39 +00:00
|
|
|
Ignore unknown (sloppy) mount options.
|
2021-05-24 16:15:26 +00:00
|
|
|
.It Fl f
|
2021-05-24 18:26:39 +00:00
|
|
|
Do everything except actually executing the system call.
|
2021-05-24 16:15:26 +00:00
|
|
|
.It Fl n
|
2021-05-24 18:26:39 +00:00
|
|
|
Never update
|
|
|
|
.Pa /etc/mtab .
|
2021-05-24 16:15:26 +00:00
|
|
|
.It Fl v
|
2021-05-24 18:26:39 +00:00
|
|
|
Print resolved mount options and parser state.
|
2021-05-24 16:15:26 +00:00
|
|
|
.It Fl h
|
2013-03-12 19:40:55 +00:00
|
|
|
Print the usage message.
|
2021-05-24 16:15:26 +00:00
|
|
|
.It Fl o Ar zfsutil
|
2013-03-12 19:40:55 +00:00
|
|
|
This private flag indicates that
|
2021-05-24 16:15:26 +00:00
|
|
|
.Xr mount 8
|
2013-03-12 19:40:55 +00:00
|
|
|
is being called by the
|
2021-05-24 16:15:26 +00:00
|
|
|
.Xr zfs 8
|
2013-03-12 19:40:55 +00:00
|
|
|
command.
|
2021-05-24 16:15:26 +00:00
|
|
|
.El
|
|
|
|
.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr fstab 5 ,
|
|
|
|
.Xr mount 8 ,
|
2021-05-24 18:26:39 +00:00
|
|
|
.Xr zfs-mount 8
|