Hi,
I Tried to implement nbd. The following are the versions of nbd and kernel
that i use
nbd-2.4.9 and kernel 2.4.5
The following is what i have done
In the server Machine
a) /tmp/nbd-server 1099 /dev/hda7
In the Client Machine
a) insmod /tmp/nbd.o
b) /tmp/nbd-client ash.enmail.com 1099 /dev/nda
on issuing the above command i get the following error messages
nbd-client: client says host name -1 is ash.enmail.com
nbd-client: client says port -1 is 1099
nbd-client: client device name is /dev/nda
nbd-client: client (-1) manager opened NBD device /dev/nda
nbd-client: Created NBD ioctl buffer size 87016
nbd-client: client (-1) manager detaches from shell
nbd-client: client (-1) manager started new process group 660
nbd-client: client (-1) opened socket 5 to port 1099
nbd-client: client (-1) introduction begins
nbd-client: client (-1) read passwd [NBDMAGIC] ok from port 1099
nbd-client: client (-1) got cliserv magic ok
nbd-client: client (-1) got size = 139313152
nbd-client: client (-1) got signature 0x3c4d2d30.. in bffffa84, had
0x0.. in 8051020
nbd-client: client (-1) suggested blksize 1024 to server
nbd-client: client (-1) received suggestion blksize 1024
nbd-client: client (-1) negotiated blksize 1024
nbd-client: client (-1) received suggestion ro flags 0
nbd-client: client (-1) negotiated ro flags 0
nbd-client: client (-1) requested 0 port connections
nbd-client: client (-1) introduction ends
nbd-client: client (-1) set size 139313152
nbd-client: client (-1) set blksize 1024
nbd-client: client (-1) set ro flags 0 on device
nbd-client: client (-1) closed socket 5
and also NBD #2090[0] : nbd_ioctl bytes 2147483647 mismatch with KB
2147483647 in BLKGETSIZE
and then when i try issuing the command mke2fs /dev/nda the system
hangs.
What am i missing. I would be very greatful if you sir could help me
in solving the problem by providing your valuable guidance.
Thanks for the time and Thanks in Advance
Regards
ashok