Skip to content

Commit

Permalink
rbd-nbd: remove debug message from do_unmap
Browse files Browse the repository at this point in the history
Global context is not initialized when do_unmap is called.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
  • Loading branch information
liupan1111 committed Mar 30, 2017
1 parent 1f67500 commit cd748f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/tools/rbd_nbd/rbd-nbd.cc
Expand Up @@ -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);
Expand Down

0 comments on commit cd748f9

Please sign in to comment.