]> git.proxmox.com Git - mirror_zfs-debian.git/blame - man/man8/mount.zfs.8
Imported Upstream version 0.6.5.3
[mirror_zfs-debian.git] / man / man8 / mount.zfs.8
CommitLineData
cf2129e6
DH
1'\" t
2.\"
3.\" CDDL HEADER START
4.\"
5.\" The contents of this file are subject to the terms of the
6.\" Common Development and Distribution License (the "License").
7.\" You may not use this file except in compliance with the License.
8.\"
9.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10.\" or http://www.opensolaris.org/os/licensing.
11.\" See the License for the specific language governing permissions
12.\" and limitations under the License.
13.\"
14.\" When distributing Covered Code, include this CDDL HEADER in each
15.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16.\" If applicable, add the following below this CDDL HEADER, with the
17.\" fields enclosed by brackets "[]" replaced with your own identifying
18.\" information: Portions Copyright [yyyy] [name of copyright owner]
19.\"
20.\" CDDL HEADER END
21.\"
22.\"
23.\" Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved.
24.\"
25.TH mount.zfs 8 "2013 FEB 28" "ZFS on Linux" "System Administration Commands"
26
27.SH NAME
28mount.zfs \- mount a ZFS filesystem
29.SH SYNOPSIS
30.LP
31.BI "mount.zfs [\-sfnvh] [\-o " options "]" " dataset mountpoint
32
33.SH DESCRIPTION
34.BR mount.zfs
35is part of the zfsutils package for Linux. It is a helper program that
36is usually invoked by the
37.BR mount (8)
38or
39.BR zfs (8)
40commands to mount a ZFS dataset.
41
42All
43.I options
44are handled according to the FILESYSTEM INDEPENDENT MOUNT OPTIONS
45section in the
46.BR mount (8)
47manual, except for those described below.
48
49The
50.I dataset
51parameter is a ZFS filesystem name, as output by the
52.B "zfs list -H -o name
53command. This parameter never has a leading slash character and is
54not a device name.
55
56The
57.I mountpoint
58parameter is the path name of a directory.
59
60
61.SH OPTIONS
62.TP
63.BI "\-s"
64Ignore bad or sloppy mount options.
65.TP
66.BI "\-f"
67Do a fake mount; do not perform the mount operation.
68.TP
69.BI "\-n"
70Do not update the /etc/mtab file.
71.TP
72.BI "\-v"
73Increase verbosity.
74.TP
75.BI "\-h"
76Print the usage message.
77.TP
a08ee875
LG
78.BI "\-o context"
79This flag sets the SELinux context for all files in the filesytem
80under that mountpoint.
81.TP
82.BI "\-o fscontext"
83This flag sets the SELinux context for the filesytem being mounted.
84.TP
85.BI "\-o defcontext"
e10b0808 86This flag sets the SELinux context for unlabeled files.
a08ee875
LG
87.TP
88.BI "\-o rootcontext"
89This flag sets the SELinux context for the root inode of the filesystem.
90.TP
cf2129e6
DH
91.BI "\-o legacy"
92This private flag indicates that the
93.I dataset
94has an entry in the /etc/fstab file.
95.TP
96.BI "\-o noxattr"
97This private flag disables extended attributes.
98.TP
99.BI "\-o xattr
e10b0808
AX
100This private flag enables directory-based extended attributes and, if
101appropriate, adds a ZFS context to the selinux system policy.
102.TP
103.BI "\-o saxattr
104This private flag enables system attributed-based extended attributes and, if
105appropriate, adds a ZFS context to the selinux system policy.
106.TP
107.BI "\-o dirxattr
108Equivalent to
109.BR xattr .
cf2129e6
DH
110.TP
111.BI "\-o zfsutil"
112This private flag indicates that
113.BR mount (8)
114is being called by the
115.BR zfs (8)
116command.
117
118.SH NOTES
119ZFS conventionally requires that the
120.I mountpoint
121be an empty directory, but the Linux implementation inconsistently
122enforces the requirement.
123
124The
125.BR mount.zfs
126helper does not mount the contents of zvols.
127
128.SH FILES
129.TP 18n
130.I /etc/fstab
131The static filesystem table.
132.TP
133.I /etc/mtab
134The mounted filesystem table.
135.SH "AUTHORS"
136The primary author of
137.BR mount.zfs
138is Brian Behlendorf <behlendorf1@llnl.gov>.
139
140This man page was written by Darik Horn <dajhorn@vanadac.com>.
141.SH "SEE ALSO"
142.BR fstab (5),
143.BR mount (8),
144.BR zfs (8)