freebsd-dev/cddl/contrib/opensolaris/lib
Mariusz Zaborski 23ee238fe5 zfs: 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.

Discussed-with: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Differential Revision:	https://reviews.freebsd.org/D22306

openzfs/zfs@a57d3d45d6
2020-04-11 17:54:35 +00:00
..
libcmdutils MFV r325013,r325034: 640 number_to_scaled_string is duplicated in several commands 2017-10-27 12:37:22 +00:00
libctf/common Reference stdint.h types in ctf.5. 2019-07-17 16:31:50 +00:00
libdtrace Do not load dtraceall.ko if dtrace.ko is already loaded. 2020-02-28 17:05:27 +00:00
libgen/common Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00
libnvpair MFV r337223: 2018-08-03 01:52:25 +00:00
libuutil/common
libzfs/common zfs: Add option for forcible unmounting dataset while receiving snapshot. 2020-04-11 17:54:35 +00:00
libzfs_core/common MFV r354377: 10554 Implemented zpool sync command 2019-11-07 11:18:28 +00:00
libzpool/common vfs: add a file missed in r356337 2020-01-03 22:47:31 +00:00
pyzfs/common