mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
zfs_receive_010_pos.ksh local => typeset change
Ksh uses `typeset`, `local` is a Bash analog. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #5995
This commit is contained in:
parent
d3b1783e44
commit
316da92825
@ -47,9 +47,9 @@ rfs=$TESTPOOL/$TESTFS/base/rfs
|
|||||||
|
|
||||||
function make_object
|
function make_object
|
||||||
{
|
{
|
||||||
local objnum=$1
|
typeset objnum=$1
|
||||||
local mntpnt=$2
|
typeset mntpnt=$2
|
||||||
local type=$3
|
typeset type=$3
|
||||||
if [[ $type == "file" ]]; then
|
if [[ $type == "file" ]]; then
|
||||||
dd if=/dev/urandom of=${mntpnt}/f$objnum bs=512 count=16
|
dd if=/dev/urandom of=${mntpnt}/f$objnum bs=512 count=16
|
||||||
elif [[ $type == "hole1" ]]; then
|
elif [[ $type == "hole1" ]]; then
|
||||||
@ -65,11 +65,11 @@ function make_object
|
|||||||
|
|
||||||
function create_pair
|
function create_pair
|
||||||
{
|
{
|
||||||
local objnum=$1
|
typeset objnum=$1
|
||||||
local mntpnt1=$2
|
typeset mntpnt1=$2
|
||||||
local mntpnt2=$3
|
typeset mntpnt2=$3
|
||||||
local type1=$4
|
typeset type1=$4
|
||||||
local type2=$5
|
typeset type2=$5
|
||||||
make_object $objnum $mntpnt1 $type1
|
make_object $objnum $mntpnt1 $type1
|
||||||
make_object $objnum $mntpnt2 $type2
|
make_object $objnum $mntpnt2 $type2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user