]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-cli: return 0 if disconnect operation with cfg.nqn successfully
authorYi Zhang <yizhan@redhat.com>
Tue, 18 Apr 2017 09:20:24 +0000 (17:20 +0800)
committerKeith Busch <keith.busch@intel.com>
Tue, 18 Apr 2017 13:20:03 +0000 (09:20 -0400)
commitf4806f68a54f664b533d3a269d19b400e136d04d
tree619b75dda6ef472706d9b829f2972c5e13ebd772
parentf0758842cd4b4e73ea3ce3954c31d8579ba2c0f2
nvme-cli: return 0 if disconnect operation with cfg.nqn successfully

disconnect_by_nqn function will return the number of controllers
successfully disconnected, so change ret = 0 if disconnect operation
with nqn successfully.

$ ./nvme disconnect -n testnqn
NQN:testnqn disconnected 1 controller(s)
$ echo $?
1

Signed-off-by: Yi Zhang <yizhan@redhat.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
fabrics.c