$LFS setstripe -c 2 -p $INVALID_POOL $POOL_DIR 2>/dev/null
[[ $? -ne 0 ]] || error "setstripe to invalid pool did not fail."
- # If the pool name does not exist, the command should fail
- $LFS setstripe -c 2 -p $NON_EXISTANT_POOL $POOL_DIR 2>/dev/null
- [[ $? -ne 0 ]] || error "setstripe to non-existant pool did not fail."
-
# lfs setstripe should work as before if a pool name is not specified.
$LFS setstripe -c -1 $POOL_DIR
[[ $? -eq 0 ]] || error "$LFS setstripe -c -1 $POOL_DIR failed."
$LFS setstripe -c 1 $DIR/$tdir/testfile1 --pool "${pool}X" &&
error "setstripe succedeed"
- # setstripe with the same pool name minus 1 letter
- $LFS setstripe -c 1 $DIR/$tdir/testfile1 --pool "${pool%?}" &&
- error "setstripe succedeed"
-
rm -f $DIR/$tdir/testfile1
destroy_pool_int $FSNAME.$pool