ceph fs new $FS_NAME fs_metadata mds-ec-pool --force 2>$TMPFILE
check_response 'erasure-code' $? 22
ceph fs new $FS_NAME mds-ec-pool fs_data 2>$TMPFILE
+ check_response 'already used by filesystem' $? 22
+ ceph fs new $FS_NAME mds-ec-pool fs_data --force 2>$TMPFILE
check_response 'erasure-code' $? 22
ceph fs new $FS_NAME mds-ec-pool mds-ec-pool 2>$TMPFILE
check_response 'erasure-code' $? 22
ceph fs new $FS_NAME fs_metadata mds-tier --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
ceph fs new $FS_NAME mds-tier fs_data 2>$TMPFILE
+ check_response 'already used by filesystem' $? 22
+ ceph fs new $FS_NAME mds-tier fs_data --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
ceph fs new $FS_NAME mds-tier mds-tier 2>$TMPFILE
+ check_response 'already used by filesystem' $? 22
+ ceph fs new $FS_NAME mds-tier mds-tier --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
set -e
# ...but not as the metadata pool
set +e
ceph fs new $FS_NAME mds-ec-pool fs_data 2>$TMPFILE
+ check_response 'already used by filesystem' $? 22
+ ceph fs new $FS_NAME mds-ec-pool fs_data --force 2>$TMPFILE
check_response 'erasure-code' $? 22
set -e