freebsd-dev/cddl/contrib/opensolaris/cmd
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
..
dtrace Fix inconsistencies in anonymous DOF files. 2019-11-18 18:34:23 +00:00
lockstat Add hold events for lockmgr probes, missed in r351361. 2019-08-21 23:47:01 +00:00
mdb/tools/common
plockstat
pyzfs
stat/common
zdb MFV r354383: 10592 misc. metaslab and vdev related ZoL bug fixes 2019-11-21 13:35:43 +00:00
zfs zfs: Add option for forcible unmounting dataset while receiving snapshot. 2020-04-11 17:54:35 +00:00
zhack MFV r354378,r354379,r354386: 10499 Multi-modifier protection (MMP) 2019-11-18 09:38:35 +00:00
zinject
zlook
zpool zfs: fix -fno-common issues 2020-03-28 17:00:38 +00:00
zstreamdump MFV r350898, r351075: 8423 8199 7432 Implement large_dnode pool feature 2019-10-07 08:14:45 +00:00
ztest MFOpenZFS: make zil max block size tunable 2020-03-19 01:05:54 +00:00