]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-nbd: remove debug message from do_unmap
authorPan Liu <liupan1111@gmail.com>
Thu, 30 Mar 2017 16:23:12 +0000 (00:23 +0800)
committerPan Liu <liupan1111@gmail.com>
Thu, 30 Mar 2017 16:23:12 +0000 (00:23 +0800)
Global context is not initialized when do_unmap is called.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
src/tools/rbd_nbd/rbd-nbd.cc

index b5d87648bf292387ccb3f7d9c810fd8050f89f2a..8ba83208b2e0a4fafbee6b7b9df1149df84d81d0 100644 (file)
@@ -763,11 +763,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);