]> git.proxmox.com Git - mirror_zfs.git/commit
Update zfs_destroy_004.ksh script
authorcao <cao.xuewen@zte.com.cn>
Tue, 23 Aug 2016 02:12:41 +0000 (10:12 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Aug 2016 22:35:54 +0000 (15:35 -0700)
commit8fe453b6718c089fdd248f45fd0adee26bd42b66
treeef63103ed65913e1d5264fea1f72d4e81f7bfe82
parent43cb1c1212be430f1a94307ac8be1737ca564e58
Update zfs_destroy_004.ksh script

Issues:
Under Linux, when executing zfs_destroy_004.ksh destroy $fs is an
error.  The key issue here is that illumos kernel treats this case
differently than the Linux kernel. On illumos you can unmount and
destroy a filesystem which is busy and all consumers of it get EIO.
On Linux the expected behavior is to prevent the unmount and destroy.

Cause analysis:
When create $fs file system and mount file system to $mntp.
cd $mntp, linux isn't allow to destroy $fs in this mount contents.
No matter what destroy with parameters.

Solution:
So  log_mustnot $ZFS destroy $fs is ok.
cd $olddir and destroy $fs.

Signed-off-by: caoxuewen cao.xuewen@zte.com.cn
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5012
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_destroy/zfs_destroy_004_pos.ksh