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.\" 22eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 23eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 24eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 28eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 29eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 30eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 31eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 32eda14cbcSMatt Macy.\" 33eda14cbcSMatt Macy.Dd February 16, 2019 34eda14cbcSMatt Macy.Dt ZFS-MOUNT 8 35eda14cbcSMatt Macy.Os 36eda14cbcSMatt Macy.Sh NAME 37*7877fdebSMatt Macy.Nm zfs-mount 38eda14cbcSMatt Macy.Nd Manage mount state of ZFS file systems. 39eda14cbcSMatt Macy.Sh SYNOPSIS 40*7877fdebSMatt Macy.Nm zfs 41eda14cbcSMatt Macy.Cm mount 42*7877fdebSMatt Macy.Nm zfs 43eda14cbcSMatt Macy.Cm mount 44eda14cbcSMatt Macy.Op Fl Oflv 45eda14cbcSMatt Macy.Op Fl o Ar options 46eda14cbcSMatt Macy.Fl a | Ar filesystem 47*7877fdebSMatt Macy.Nm zfs 48eda14cbcSMatt Macy.Cm unmount 49eda14cbcSMatt Macy.Op Fl fu 50eda14cbcSMatt Macy.Fl a | Ar filesystem Ns | Ns Ar mountpoint 51eda14cbcSMatt Macy.Sh DESCRIPTION 52eda14cbcSMatt Macy.Bl -tag -width "" 53eda14cbcSMatt Macy.It Xo 54*7877fdebSMatt Macy.Nm zfs 55eda14cbcSMatt Macy.Cm mount 56eda14cbcSMatt Macy.Xc 57eda14cbcSMatt MacyDisplays all ZFS file systems currently mounted. 58eda14cbcSMatt Macy.It Xo 59*7877fdebSMatt Macy.Nm zfs 60eda14cbcSMatt Macy.Cm mount 61eda14cbcSMatt Macy.Op Fl Oflv 62eda14cbcSMatt Macy.Op Fl o Ar options 63eda14cbcSMatt Macy.Fl a | Ar filesystem 64eda14cbcSMatt Macy.Xc 65eda14cbcSMatt MacyMount ZFS filesystem on a path described by its 66eda14cbcSMatt Macy.Sy mountpoint 67eda14cbcSMatt Macyproperty, if the path exists and is empty. If 68eda14cbcSMatt Macy.Sy mountpoint 69eda14cbcSMatt Macyis set to 70eda14cbcSMatt Macy.Em legacy , 71eda14cbcSMatt Macythe filesystem should be instead mounted using 72eda14cbcSMatt Macy.Xr mount 8 . 73eda14cbcSMatt Macy.Bl -tag -width "-O" 74eda14cbcSMatt Macy.It Fl O 75eda14cbcSMatt MacyPerform an overlay mount. Allows mounting in non-empty 76eda14cbcSMatt Macy.Sy mountpoint . 77eda14cbcSMatt MacySee 78eda14cbcSMatt Macy.Xr mount 8 79eda14cbcSMatt Macyfor more information. 80eda14cbcSMatt Macy.It Fl a 81eda14cbcSMatt MacyMount all available ZFS file systems. 82eda14cbcSMatt MacyInvoked automatically as part of the boot process if configured. 83eda14cbcSMatt Macy.It Ar filesystem 84eda14cbcSMatt MacyMount the specified filesystem. 85eda14cbcSMatt Macy.It Fl o Ar options 86eda14cbcSMatt MacyAn optional, comma-separated list of mount options to use temporarily for the 87eda14cbcSMatt Macyduration of the mount. 88eda14cbcSMatt MacySee the 89eda14cbcSMatt Macy.Em Temporary Mount Point Properties 90eda14cbcSMatt Macysection of 91eda14cbcSMatt Macy.Xr zfsprops 8 92eda14cbcSMatt Macyfor details. 93eda14cbcSMatt Macy.It Fl l 94eda14cbcSMatt MacyLoad keys for encrypted filesystems as they are being mounted. This is 95eda14cbcSMatt Macyequivalent to executing 96eda14cbcSMatt Macy.Nm zfs Cm load-key 97eda14cbcSMatt Macyon each encryption root before mounting it. Note that if a filesystem has a 98eda14cbcSMatt Macy.Sy keylocation 99eda14cbcSMatt Macyof 100eda14cbcSMatt Macy.Sy prompt 101eda14cbcSMatt Macythis will cause the terminal to interactively block after asking for the key. 102eda14cbcSMatt Macy.It Fl v 103eda14cbcSMatt MacyReport mount progress. 104eda14cbcSMatt Macy.It Fl f 105eda14cbcSMatt MacyAttempt to force mounting of all filesystems, even those that couldn't normally be mounted (e.g. redacted datasets). 106eda14cbcSMatt Macy.El 107eda14cbcSMatt Macy.It Xo 108*7877fdebSMatt Macy.Nm zfs 109eda14cbcSMatt Macy.Cm unmount 110eda14cbcSMatt Macy.Op Fl fu 111eda14cbcSMatt Macy.Fl a | Ar filesystem Ns | Ns Ar mountpoint 112eda14cbcSMatt Macy.Xc 113eda14cbcSMatt MacyUnmounts currently mounted ZFS file systems. 114eda14cbcSMatt Macy.Bl -tag -width "-a" 115eda14cbcSMatt Macy.It Fl a 116eda14cbcSMatt MacyUnmount all available ZFS file systems. 117eda14cbcSMatt MacyInvoked automatically as part of the shutdown process. 118eda14cbcSMatt Macy.It Fl f 119eda14cbcSMatt MacyForcefully unmount the file system, even if it is currently in use. 120eda14cbcSMatt MacyThis option is not supported on Linux. 121eda14cbcSMatt Macy.It Fl u 122eda14cbcSMatt MacyUnload keys for any encryption roots unmounted by this command. 123eda14cbcSMatt Macy.It Ar filesystem Ns | Ns Ar mountpoint 124eda14cbcSMatt MacyUnmount the specified filesystem. 125eda14cbcSMatt MacyThe command can also be given a path to a ZFS file system mount point on the 126eda14cbcSMatt Macysystem. 127eda14cbcSMatt Macy.El 128eda14cbcSMatt Macy.El 129