mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
OpenZFS 7001 - zvol_misc tests should not depend on /sbin or /usr/sbin being in PATH
Authored by: Hans Rosenfeld <hans.rosenfeld@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Ported-by: George Melikov <mail@gmelikov.ru> OpenZFS-issue: https://www.illumos.org/issues/7001 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/258c9c7 Closes #5801 Porting notes: - Most of the changes were previously applied.
This commit is contained in:
parent
9060917189
commit
43bd43f9ce
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
# Copyright (c) 2013, 2015 by Delphix. All rights reserved.
|
||||||
|
# Copyright 2016 Nexenta Systems, Inc.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
@ -44,7 +45,7 @@
|
|||||||
|
|
||||||
verify_runnable "global"
|
verify_runnable "global"
|
||||||
|
|
||||||
volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL)
|
volsize=$($ZFS get -H -o value volsize $TESTPOOL/$TESTVOL)
|
||||||
|
|
||||||
function cleanup
|
function cleanup
|
||||||
{
|
{
|
||||||
@ -52,7 +53,7 @@ function cleanup
|
|||||||
if [[ $dumpdev != $savedumpdev ]] ; then
|
if [[ $dumpdev != $savedumpdev ]] ; then
|
||||||
safe_dumpadm $savedumpdev
|
safe_dumpadm $savedumpdev
|
||||||
fi
|
fi
|
||||||
zfs set volsize=$volsize $TESTPOOL/$TESTVOL
|
$ZFS set volsize=$volsize $TESTPOOL/$TESTVOL
|
||||||
}
|
}
|
||||||
|
|
||||||
log_assert "zfs volume as dumpdevice should have 128k volblocksize"
|
log_assert "zfs volume as dumpdevice should have 128k volblocksize"
|
||||||
|
Loading…
Reference in New Issue
Block a user