[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] nbd 2.9.16: nbd-client -c exit code is incorrect for disconnected on ubuntu lucid



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@...811...:/opt/nbd-2.9.15$ sudo make install
blah blah blah
me@...811...:/opt/nbd-2.9.15$ nbd-client -c /dev/nbd0
me@...811...:/opt/nbd-2.9.15$ echo $?
1
me@...811...:/opt/nbd-2.9.15$ sudo make uninstall
blah blah blah
me@...811...:/opt/nbd-2.9.15$ cd ../nbd-2.9.16
me@...811...:/opt/nbd-2.9.16$ sudo make install
blah blah blah
me@...811...:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0
me@...811...:/opt/nbd-2.9.16$ echo $?
0
me@...811...:/opt/nbd-2.9.16$ sudo nbd-client mynbdserver 666 /dev/nbd0
Negotiation: ..size = 335544320KB
bs=1024, sz=335544320
me@...811...:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0
2732
me@...811...:/opt/nbd-2.9.16$ echo $?
0
me@...811...:/opt/nbd-2.9.16$ sudo nbd-client -d /dev/nbd0
Disconnecting: que, disconnect, sock, done
me@...811...:/opt/nbd-2.9.16$ nbd-client -c /dev/nbd0
me@...811...:/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)



Reply to: