1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

ctdb-tests: Bracket IP addresses in NFS mounts and scp command (for IPv6)

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2014-12-03 15:57:35 +11:00 committed by Martin Schwenke
parent d9d07fff34
commit 62164ec52f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ ctdb_test_exit_hook_add rm -f "$local_f"
dd if=/dev/urandom of=$local_f bs=1k count=1
local_sum=$(sum $local_f)
scp -p "$local_f" "${test_ip}:${nfs_remote_file}"
scp -p "$local_f" "[${test_ip}]:${nfs_remote_file}"
try_command_on_node $test_node "chmod 644 $nfs_remote_file"
nfs_sum=$(sum $nfs_local_file)

View File

@ -669,7 +669,7 @@ nfs_test_setup ()
echo "Mounting ${test_ip}:${nfs_first_export} on ${nfs_mnt_d} ..."
mount -o timeo=1,hard,intr,vers=3 \
${test_ip}:${nfs_first_export} ${nfs_mnt_d}
"[${test_ip}]:${nfs_first_export}" ${nfs_mnt_d}
}
nfs_test_cleanup ()