aboutsummaryrefslogtreecommitdiffstats
path: root/tests/runfiles
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 /tests/runfiles
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 'tests/runfiles')
-rw-r--r--tests/runfiles/common.run7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/runfiles/common.run b/tests/runfiles/common.run
index c57989fe4..96700becb 100644
--- a/tests/runfiles/common.run
+++ b/tests/runfiles/common.run
@@ -208,9 +208,10 @@ tests = ['zfs_receive_001_pos', 'zfs_receive_002_pos', 'zfs_receive_003_pos',
'zfs_receive_007_neg', 'zfs_receive_008_pos', 'zfs_receive_009_neg',
'zfs_receive_010_pos', 'zfs_receive_011_pos', 'zfs_receive_012_pos',
'zfs_receive_013_pos', 'zfs_receive_014_pos', 'zfs_receive_015_pos',
- 'receive-o-x_props_override', 'zfs_receive_from_encrypted',
- 'zfs_receive_to_encrypted', 'zfs_receive_raw',
- 'zfs_receive_raw_incremental', 'zfs_receive_-e', 'zfs_receive_raw_-d']
+ 'zfs_receive_016_pos', 'receive-o-x_props_override',
+ 'zfs_receive_from_encrypted', 'zfs_receive_to_encrypted',
+ 'zfs_receive_raw', 'zfs_receive_raw_incremental', 'zfs_receive_-e',
+ 'zfs_receive_raw_-d']
tags = ['functional', 'cli_root', 'zfs_receive']
[tests/functional/cli_root/zfs_rename]