]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: remove debug message from do_unmap 16098/head
authorPan Liu <liupan1111@gmail.com>
Thu, 30 Mar 2017 16:23:12 +0000 (00:23 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 Jul 2017 08:57:01 +0000 (10:57 +0200)
Global context is not initialized when do_unmap is called.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
(cherry picked from commit cd748f9b260a3c388b45091ff0bfc041257acd0c)

src/tools/rbd_nbd/rbd-nbd.cc

index 465ee9ca065952bbb57d4269bc3d64f09dd8ff6c..c3f4c5cf515ef6c837bc801387263277ac61cece 100644 (file)
@@ -706,11 +706,8 @@ static int do_unmap()
     return nbd;
   }
 
-  dout(20) << __func__ << ": " << "sending NBD_DISCONNECT" << dendl;
   if (ioctl(nbd, NBD_DISCONNECT) < 0) {
     cerr << "rbd-nbd: the device is not used" << std::endl;
-  } else {
-    dout(20) << __func__ << ": " << "disconnected" << dendl;
   }
 
   close(nbd);