[ENBD] need help
Peter T. Breuer
enbd@lists.community.tummy.com
Tue, 5 Mar 2002 18:32:43 +0100 (MET)
"A month of sundays ago Prashant Kharche wrote:"
> i used that patch.. now the nbd driver is getting compiled but i dont know
> the sequence of commands...
> some one please tell me the sequence of commands to use NBD..
There should be a README. Avtually, it says the instructions are in
the INSTALL file:
It should be sufficient to type "make config all" in this directory.
But check first
0) that you have the kernel sources installed
1) that the kernel source directory LINUXDIR in the Makefile is correct
2) that you (a) set SMP=1 in the Makefile if your target kernel is SMP;
and (b) that there isn't an old config.cache hanging around in the nbd
subdirectory when you run the make config.
In addition, you must have [open]ssl headers and libs installed if you
plan to compile with USING_SSL=1. If you don't understand what SSL
means, just ignore this paragraph.
The make will build nbd.o, nbd-server, nbd-client in /tmp. Change
BUILD
in the Makefile to put the build directory somewhere else.
Later you may wish to install nbd-server and nbd-client in
/usr/local/sbin and put their manpages in /usr/local/man/man8.
"make install" will do the job automatically (see INSTALL below).
TEST instructions
If you want to try a test ...
[snip]
To do this test by hand. try some variant on:
server: /tmp/nbd-server 12345 /tmp/core?
client: insmod /tmp/nbd.o
client: /tmp/nbd-client <server>:12345 <server> <server>
....
Peter