Skip to content

Commit 18394ff

Browse files
committed
Fix(map): create volume failed due to the problematic script.
Signed-off-by: Wine93 <[email protected]>
1 parent 5b0cd13 commit 18394ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/task/scripts/shell/create_volume.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ g_create_opts=(
1616
-fileLength="$g_size"
1717
)
1818
if [ -n "$g_poolset" ]; then
19-
g_build_opts+=("-poolset=$g_poolset")
19+
g_create_opts+=("-poolset=$g_poolset")
2020
fi
2121

2222
output=$(curve_ops_tool create "${g_create_opts[@]}")
2323
if [ "$?" -ne 0 ]; then
24-
if [ "$output" = "CreateFile fail with errCode: 101" ]; then
24+
if [ "$output" = "CreateFile fail with errCode: kFileExists" ]; then
2525
echo "EXIST"
2626
else
2727
echo "FAILED"

0 commit comments

Comments
 (0)