]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: drop querying of RBD default features
authorJason Dillaman <dillaman@redhat.com>
Tue, 4 Aug 2020 18:28:21 +0000 (14:28 -0400)
committerMykola Golub <mgolub@suse.com>
Mon, 14 Jun 2021 12:14:31 +0000 (15:14 +0300)
These will be computed internally by librbd using any potential
global configuration overrides.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 596d892e6023aeedf2fa4b178708c712d3180269)

src/tools/rbd/Utils.cc

index f397ea50e2cdf2d54189e4a49e5aee3431f3acea..30eaccefc4ab81ecfabd13478831d985f1160065 100644 (file)
@@ -445,8 +445,6 @@ int get_image_options(const boost::program_options::variables_map &vm,
   if (vm.count(at::IMAGE_FEATURES)) {
     features = vm[at::IMAGE_FEATURES].as<uint64_t>();
     features_specified = true;
-  } else {
-    features = get_rbd_default_features(g_ceph_context);
   }
 
   if (vm.count(at::IMAGE_STRIPE_UNIT)) {