mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Fix error message when stripping with format 1
Since the option '--format' for specifying the rbd image format is deprecated, we should recommend '--image-format' instead. Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
This commit is contained in:
parent
b2b285938e
commit
a8d597fca1
@ -421,7 +421,7 @@ static int do_create(librbd::RBD &rbd, librados::IoCtx& io_ctx,
|
|||||||
// weird striping not allowed with format 1!
|
// weird striping not allowed with format 1!
|
||||||
if ((stripe_unit || stripe_count) &&
|
if ((stripe_unit || stripe_count) &&
|
||||||
(stripe_unit != (1ull << *order) && stripe_count != 1)) {
|
(stripe_unit != (1ull << *order) && stripe_count != 1)) {
|
||||||
cerr << "non-default striping not allowed with format 1; use --format 2"
|
cerr << "non-default striping not allowed with format 1; use --image-format 2"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user