"test/test_sox_compatibility.py" did not exist on "5f5df1d649de8504c68ec532195ab1ba3fb54680"
Commit 28998edd authored by longpanda's avatar longpanda
Browse files

Add check for size in CreatePersistentImg.sh (#1384)

parent 2ad69dec
......@@ -56,8 +56,13 @@ fi
# check size
if echo $size | grep -q "^[0-9][0-9]*$"; then
if [ $size -le 1 ]; then
echo "Invalid size $size"
vtMinSize=1
if echo $fstype | grep -q '^xfs$'; then
vtMinSize=16
fi
if [ $size -lt $vtMinSize ]; then
echo "size too small ($size)"
exit 1
fi
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment