1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 22eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 23eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 28eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 29eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 30eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 31eda14cbcSMatt Macy.\" 32eda14cbcSMatt Macy.Dd February 16, 2019 33eda14cbcSMatt Macy.Dt ZFS-MOUNT 8 34eda14cbcSMatt Macy.Os 35*16038816SMartin Matuska. 36eda14cbcSMatt Macy.Sh NAME 377877fdebSMatt Macy.Nm zfs-mount 38*16038816SMartin Matuska.Nd manage mount state of ZFS filesystems 39eda14cbcSMatt Macy.Sh SYNOPSIS 407877fdebSMatt Macy.Nm zfs 41eda14cbcSMatt Macy.Cm mount 427877fdebSMatt Macy.Nm zfs 43eda14cbcSMatt Macy.Cm mount 44eda14cbcSMatt Macy.Op Fl Oflv 45eda14cbcSMatt Macy.Op Fl o Ar options 46*16038816SMartin Matuska.Fl a Ns | Ns Ar filesystem 477877fdebSMatt Macy.Nm zfs 48eda14cbcSMatt Macy.Cm unmount 49eda14cbcSMatt Macy.Op Fl fu 50*16038816SMartin Matuska.Fl a Ns | Ns Ar filesystem Ns | Ns Ar mountpoint 51*16038816SMartin Matuska. 52eda14cbcSMatt Macy.Sh DESCRIPTION 53eda14cbcSMatt Macy.Bl -tag -width "" 54eda14cbcSMatt Macy.It Xo 557877fdebSMatt Macy.Nm zfs 56eda14cbcSMatt Macy.Cm mount 57eda14cbcSMatt Macy.Xc 58eda14cbcSMatt MacyDisplays all ZFS file systems currently mounted. 59eda14cbcSMatt Macy.It Xo 607877fdebSMatt Macy.Nm zfs 61eda14cbcSMatt Macy.Cm mount 62eda14cbcSMatt Macy.Op Fl Oflv 63eda14cbcSMatt Macy.Op Fl o Ar options 64*16038816SMartin Matuska.Fl a Ns | Ns Ar filesystem 65eda14cbcSMatt Macy.Xc 66eda14cbcSMatt MacyMount ZFS filesystem on a path described by its 67eda14cbcSMatt Macy.Sy mountpoint 68*16038816SMartin Matuskaproperty, if the path exists and is empty. 69*16038816SMartin MatuskaIf 70eda14cbcSMatt Macy.Sy mountpoint 71eda14cbcSMatt Macyis set to 72eda14cbcSMatt Macy.Em legacy , 73eda14cbcSMatt Macythe filesystem should be instead mounted using 74eda14cbcSMatt Macy.Xr mount 8 . 75eda14cbcSMatt Macy.Bl -tag -width "-O" 76eda14cbcSMatt Macy.It Fl O 77*16038816SMartin MatuskaPerform an overlay mount. 78*16038816SMartin MatuskaAllows mounting in non-empty 79eda14cbcSMatt Macy.Sy mountpoint . 80eda14cbcSMatt MacySee 81eda14cbcSMatt Macy.Xr mount 8 82eda14cbcSMatt Macyfor more information. 83eda14cbcSMatt Macy.It Fl a 84eda14cbcSMatt MacyMount all available ZFS file systems. 85eda14cbcSMatt MacyInvoked automatically as part of the boot process if configured. 86eda14cbcSMatt Macy.It Ar filesystem 87eda14cbcSMatt MacyMount the specified filesystem. 88eda14cbcSMatt Macy.It Fl o Ar options 89eda14cbcSMatt MacyAn optional, comma-separated list of mount options to use temporarily for the 90eda14cbcSMatt Macyduration of the mount. 91eda14cbcSMatt MacySee the 92eda14cbcSMatt Macy.Em Temporary Mount Point Properties 93eda14cbcSMatt Macysection of 94eda14cbcSMatt Macy.Xr zfsprops 8 95eda14cbcSMatt Macyfor details. 96eda14cbcSMatt Macy.It Fl l 97*16038816SMartin MatuskaLoad keys for encrypted filesystems as they are being mounted. 98*16038816SMartin MatuskaThis is equivalent to executing 99eda14cbcSMatt Macy.Nm zfs Cm load-key 100*16038816SMartin Matuskaon each encryption root before mounting it. 101*16038816SMartin MatuskaNote that if a filesystem has 102*16038816SMartin Matuska.Sy keylocation Ns = Ns Sy prompt , 103eda14cbcSMatt Macythis will cause the terminal to interactively block after asking for the key. 104eda14cbcSMatt Macy.It Fl v 105eda14cbcSMatt MacyReport mount progress. 106eda14cbcSMatt Macy.It Fl f 107eda14cbcSMatt MacyAttempt to force mounting of all filesystems, even those that couldn't normally be mounted (e.g. redacted datasets). 108eda14cbcSMatt Macy.El 109eda14cbcSMatt Macy.It Xo 1107877fdebSMatt Macy.Nm zfs 111eda14cbcSMatt Macy.Cm unmount 112eda14cbcSMatt Macy.Op Fl fu 113*16038816SMartin Matuska.Fl a Ns | Ns Ar filesystem Ns | Ns Ar mountpoint 114eda14cbcSMatt Macy.Xc 115eda14cbcSMatt MacyUnmounts currently mounted ZFS file systems. 116eda14cbcSMatt Macy.Bl -tag -width "-a" 117eda14cbcSMatt Macy.It Fl a 118eda14cbcSMatt MacyUnmount all available ZFS file systems. 119eda14cbcSMatt MacyInvoked automatically as part of the shutdown process. 120eda14cbcSMatt Macy.It Fl f 121eda14cbcSMatt MacyForcefully unmount the file system, even if it is currently in use. 122eda14cbcSMatt MacyThis option is not supported on Linux. 123eda14cbcSMatt Macy.It Fl u 124eda14cbcSMatt MacyUnload keys for any encryption roots unmounted by this command. 125eda14cbcSMatt Macy.It Ar filesystem Ns | Ns Ar mountpoint 126eda14cbcSMatt MacyUnmount the specified filesystem. 127eda14cbcSMatt MacyThe command can also be given a path to a ZFS file system mount point on the 128eda14cbcSMatt Macysystem. 129eda14cbcSMatt Macy.El 130eda14cbcSMatt Macy.El 131