From a8d597fca17a1eda82c66a92265438c974f90629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 10 Oct 2014 14:14:22 +0200 Subject: [PATCH] Fix error message when stripping with format 1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since the option '--format' for specifying the rbd image format is deprecated, we should recommend '--image-format' instead. Signed-off-by: Sébastien Han --- src/rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd.cc b/src/rbd.cc index 01e8a86843e6..2d52439c3efd 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -421,7 +421,7 @@ static int do_create(librbd::RBD &rbd, librados::IoCtx& io_ctx, // weird striping not allowed with format 1! if ((stripe_unit || stripe_count) && (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; return -EINVAL; } -- 2.47.3