[Nbd] nbd 2.9.16: nbd-client -c exit code is incorrect for disconnected on ubuntu lucid
Brought to you by:
yoe
|
From: Richard H. <rhu...@gm...> - 2010-07-27 22:08:22
|
i'm not the most intelligent linux user/person in general, so perhaps i'm doing something stupid i upgraded from nbd 2.9.15 to 2.9.16 and nbd-client -c doesn't return the correct value when the device is disconnected, me@mybox:/opt/nbd-2.9.15$ sudo make install blah blah blah me@mybox:/opt/nbd-2.9.15$ nbd-client -c /dev/nbd0 me@mybox:/opt/nbd-2.9.15$ echo $? 1 me@mybox:/opt/nbd-2.9.15$ sudo make uninstall blah blah blah me@mybox:/opt/nbd-2.9.15$ cd ../nbd-2.9.16 me@mybox:/opt/nbd-2.9.16$ sudo make install blah blah blah me@mybox:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0 me@mybox:/opt/nbd-2.9.16$ echo $? 0 me@mybox:/opt/nbd-2.9.16$ sudo nbd-client mynbdserver 666 /dev/nbd0 Negotiation: ..size = 335544320KB bs=1024, sz=335544320 me@mybox:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0 2732 me@mybox:/opt/nbd-2.9.16$ echo $? 0 me@mybox:/opt/nbd-2.9.16$ sudo nbd-client -d /dev/nbd0 Disconnecting: que, disconnect, sock, done me@mybox:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0 me@mybox:/opt/nbd-2.9.16$ echo $? 0 as you can see, nbd-2.9.15 returns the correct results, and nbd-2.9.16 always returns 0 is there an incompatability between the kernel module and the nbd code i've downloaded? modinfo nbd filename: /lib/modules/2.6.32-24-server/kernel/drivers/block/nbd.ko license: GPL description: Network Block Device srcversion: 124B68EE259895343ED15AD depends: vermagic: 2.6.32-24-server SMP mod_unload modversions parm: nbds_max:number of network block devices to initialize (default: 16) (int) parm: max_part:number of partitions per device (default: 0) (int) parm: debugflags:flags for controlling debug output (int) |