summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorMariusz Zaborski <[email protected]>2020-03-17 18:08:32 +0100
committerGitHub <[email protected]>2020-03-17 10:08:32 -0700
commita57d3d45d6efdff935421e2ef3f97e3dc089d93d (patch)
treedac886a88e2c50cd450f1684f93d8549e24469e9 /man
parent80d98a8f3addfbfa1feefef70774193ed18c1013 (diff)
Add option for forcible unmounting dataset while receiving snapshot.
Currently when the dataset is in use we can't receive snapshots. zfs send test/1@asd | zfs recv -FM test/2 cannot unmount '/test/2': Device busy This commits add option 'M' which attempts to forcibly unmount the dataset. Thanks to this we can enforce receiving snapshots in a single step. Note that this functionality is not supported on Linux because the VFS will prevent active mounted filesystems from being unmounted, even with the force option. This is the intended VFS behavior. Test cases were added to verify the expected behavior based on the platform. Discussed-with: Pawel Jakub Dawidek <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Allan Jude <[email protected]> External-issue: https://reviews.freebsd.org/D22306 Closes #9904
Diffstat (limited to 'man')
-rw-r--r--man/man8/zfs-receive.813
1 files changed, 8 insertions, 5 deletions
diff --git a/man/man8/zfs-receive.8 b/man/man8/zfs-receive.8
index ac5711ca6..30b509140 100644
--- a/man/man8/zfs-receive.8
+++ b/man/man8/zfs-receive.8
@@ -30,7 +30,7 @@
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2019 Joyent, Inc.
.\"
-.Dd June 30, 2019
+.Dd February 16, 2020
.Dt ZFS-RECEIVE 8
.Os Linux
.Sh NAME
@@ -39,14 +39,14 @@
.Sh SYNOPSIS
.Nm
.Cm receive
-.Op Fl Fhnsuv
+.Op Fl FhMnsuv
.Op Fl o Sy origin Ns = Ns Ar snapshot
.Op Fl o Ar property Ns = Ns Ar value
.Op Fl x Ar property
.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
.Nm
.Cm receive
-.Op Fl Fhnsuv
+.Op Fl FhMnsuv
.Op Fl d Ns | Ns Fl e
.Op Fl o Sy origin Ns = Ns Ar snapshot
.Op Fl o Ar property Ns = Ns Ar value
@@ -61,7 +61,7 @@
.It Xo
.Nm
.Cm receive
-.Op Fl Fhnsuv
+.Op Fl FhMnsuv
.Op Fl o Sy origin Ns = Ns Ar snapshot
.Op Fl o Ar property Ns = Ns Ar value
.Op Fl x Ar property
@@ -70,7 +70,7 @@
.It Xo
.Nm
.Cm receive
-.Op Fl Fhnsuv
+.Op Fl FhMnsuv
.Op Fl d Ns | Ns Fl e
.Op Fl o Sy origin Ns = Ns Ar snapshot
.Op Fl o Ar property Ns = Ns Ar value
@@ -229,6 +229,9 @@ that element to determine the name of the target file system for the new
snapshot as described in the paragraph above.
.It Fl h
Skip the receive of holds. There is no effect if holds are not sent.
+.It Fl M
+Force an unmount of the file system while receiving a snapshot.
+This option is not supported on Linux.
.It Fl n
Do not actually receive the stream.
This can be useful in conjunction with the