diff --git a/syncoid b/syncoid index 10cd6b5..230e159 100755 --- a/syncoid +++ b/syncoid @@ -1431,9 +1431,9 @@ sub getlocalzfsvalues { writelog('DEBUG', "getting locally set values of properties on $fs..."); my $mysudocmd; if ($isroot) { $mysudocmd = ''; } else { $mysudocmd = $sudocmd; } - writelog('DEBUG', "$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped"); + writelog('DEBUG', "$rhost $mysudocmd $zfscmd get -s local -H all $fsescaped"); my ($values, $error, $exit) = capture { - system("$rhost $mysudocmd $zfscmd get all -s local -H $fsescaped"); + system("$rhost $mysudocmd $zfscmd get -s local -H all $fsescaped"); }; my %properties=(); diff --git a/tests/syncoid/7_preserve_recordsize/run.sh b/tests/syncoid/7_preserve_recordsize/run.sh index 3085b9b..9f7d7f4 100755 --- a/tests/syncoid/7_preserve_recordsize/run.sh +++ b/tests/syncoid/7_preserve_recordsize/run.sh @@ -32,17 +32,17 @@ zfs create -o recordsize=32k "${POOL_NAME}"/src/32 zfs create -o recordsize=128k "${POOL_NAME}"/src/128 ../../../syncoid --preserve-recordsize --recursive --debug --compress=none "${POOL_NAME}"/src "${POOL_NAME}"/dst -zfs get recordsize -t filesystem -r "${POOL_NAME}"/dst -zfs get volblocksize -t volume -r "${POOL_NAME}"/dst +zfs get -t filesystem -r recordsize "${POOL_NAME}"/dst +zfs get -t volume -r volblocksize "${POOL_NAME}"/dst -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst/16)" != "16K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst/16)" != "16K" ]; then exit 1 fi -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst/32)" != "32K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst/32)" != "32K" ]; then exit 1 fi -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst/128)" != "128K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst/128)" != "128K" ]; then exit 1 fi diff --git a/tests/syncoid/9_preserve_properties/run.sh b/tests/syncoid/9_preserve_properties/run.sh index 76d7a82..6ec9c4e 100755 --- a/tests/syncoid/9_preserve_properties/run.sh +++ b/tests/syncoid/9_preserve_properties/run.sh @@ -34,38 +34,38 @@ zfs set 'net.openoid:var-name'='with whitespace and !"§$%&/()= symbols' "${POOL ../../../syncoid --preserve-properties --recursive --debug --compress=none "${POOL_NAME}"/src "${POOL_NAME}"/dst -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst)" != "16K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst)" != "16K" ]; then exit 1 fi -if [ "$(zfs get mountpoint -H -o value -t filesystem "${POOL_NAME}"/dst)" != "none" ]; then +if [ "$(zfs get -H -o value -t filesystem mountpoint "${POOL_NAME}"/dst)" != "none" ]; then exit 1 fi -if [ "$(zfs get xattr -H -o value -t filesystem "${POOL_NAME}"/dst)" != "on" ]; then +if [ "$(zfs get -H -o value -t filesystem xattr "${POOL_NAME}"/dst)" != "on" ]; then exit 1 fi -if [ "$(zfs get primarycache -H -o value -t filesystem "${POOL_NAME}"/dst)" != "none" ]; then +if [ "$(zfs get -H -o value -t filesystem primarycache "${POOL_NAME}"/dst)" != "none" ]; then exit 1 fi -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst/16)" != "16K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst/16)" != "16K" ]; then exit 1 fi -if [ "$(zfs get primarycache -H -o value -t filesystem "${POOL_NAME}"/dst/16)" != "none" ]; then +if [ "$(zfs get -H -o value -t filesystem primarycache "${POOL_NAME}"/dst/16)" != "none" ]; then exit 1 fi -if [ "$(zfs get recordsize -H -o value -t filesystem "${POOL_NAME}"/dst/32)" != "32K" ]; then +if [ "$(zfs get -H -o value -t filesystem recordsize "${POOL_NAME}"/dst/32)" != "32K" ]; then exit 1 fi -if [ "$(zfs get acltype -H -o value -t filesystem "${POOL_NAME}"/dst/32)" != "posix" ]; then +if [ "$(zfs get -H -o value -t filesystem acltype "${POOL_NAME}"/dst/32)" != "posix" ]; then exit 1 fi -if [ "$(zfs get 'net.openoid:var-name' -H -o value -t filesystem "${POOL_NAME}"/dst/32)" != "with whitespace and !\"§$%&/()= symbols" ]; then +if [ "$(zfs get -H -o value -t filesystem 'net.openoid:var-name' "${POOL_NAME}"/dst/32)" != "with whitespace and !\"§$%&/()= symbols" ]; then exit 1 fi