]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: no need to check image format any more 13389/head
authorMykola Golub <mgolub@mirantis.com>
Mon, 13 Feb 2017 09:45:56 +0000 (10:45 +0100)
committerMykola Golub <mgolub@mirantis.com>
Mon, 13 Feb 2017 09:45:56 +0000 (10:45 +0100)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/tools/rbd_nbd/rbd-nbd.cc

index 08384d42eba54563202545be729a7254a0e4fc5e..f49ea6ade5a93dae4765ea3876a936cca1b72433 100644 (file)
@@ -510,7 +510,6 @@ static int do_map()
   int fd[2];
   int nbd;
 
-  uint8_t old_format;
   librbd::image_info_t info;
 
   Preforker forker;
@@ -659,10 +658,6 @@ static int do_map()
     goto close_nbd;
   }
 
-  r = image.old_format(&old_format);
-  if (r < 0)
-    goto close_nbd;
-
   {
     uint64_t handle;