Re: GC-Linux

Adam Thornton <[email protected]>
Newsgroups gmane.linux.ports.game-cube.devel
Message-ID <[email protected]>
On Sat, 2004-03-06 at 12:08, Steven Looman wrote:
> Hi,
> 
> Can you give the exact error message nbd-client gives?
> 
> Maybe you started it the wrong way. This is how i started it:
> server: nbd-server 33221 /usr/diskless/cube.swap
> client: nbd-client 192.168.2.1 33221 /dev/swap

Here's how I'm starting the server:
<adam> dev-linux:~/nbd-2.6 $ dd if=/dev/zero of=64MB.swap bs=1M count=64
64+0 records in
64+0 records out
<adam> dev-linux:~/nbd-2.6 $ ./nbd-server 33221
/home/adam/nbd-2.6/64MB.swap 

Then, on the cube:

cube:~# ls -l /dev/swap
brw-r--r--    1 root     uucp      43,   0 Mar  1 12:04 /dev/swap
cube:~# ./nbd-client 192.168.1.4 33221 /dev/swap
Error: Can not open NBD: No such device or address

If I hit a machine that doesn't exist, as expected, the command hangs.

If I hit a machine that isn't running NBD, as expected, I get
"Connection refused":
cube:~# ./nbd-client 192.168.1.1 33221 /dev/swap
Error: Connect: Connection refused

So clearly I'm hitting something on port 33221 of the appropriate
machine...but it isn't acting right.  

OK, so, u32 and u64 aren't defined, so that the configure check for
nbd.h fails because the types are undefined and therefore the test
compilation for usability of nbd.h fails.

But cliserv.h *does* that.  And other than a comparison between signed
and unsigned I get warned about, compilation and running appear OK.

cube:~# ./nbd-client 192.168.1.13 33221 /dev/swap
Error: Can not open NBD: No such device or address

I get the same thing if I run nbd-server I've apt-gotten for Debian
Sarge.

Adam




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.