[ENBD] Re: Raw disks , ntfs

Peter T. Breuer ptb@it.uc3m.es
Wed, 25 Oct 2000 10:50:39 +0200 (MET DST)


"A month of sundays ago Raul Hudea wrote:"
> Indeed I forgot to say last time the version of nbd we are using.
> It's 2.4.15 ( from ftp ).

Nbd-2.4.15 isn't on the ftp site. It's available only by http, file by
file! (I know it isn't available, because it's the one I am working on
and I haven't released it yet). Do you mean nbd-2.4.14 ?

> The kernel are SMP and nbd( both client and server are compiled with -D__SMP__ )

The client and server don't matter, it's the MODULE (nbd.o) that must
be compiled with __SMP__ defined (and -O2, of course).

> Command lines:
>    - nbd-server 1090 /dev/rd/c0d1p2 -b 1024
>    - nbd-client srv-demo 1090 srv-demo -b 1024 /dev/ndb

> The problem still remains:( ioctl fails )

That's a module problem. Convince me that you compiled the module with
__SMP__. Show me the kernel log (dmesg).

>         We see that client receives the blk size.
> 
> nbd-client: setblksize/ioctl: Invalid argument   ( this is put by me )
> nbd-client: Ioctl/1.1 failed: Invalid argument   ???
> nbd-client: Failed/5: Invalid argument

module behaves badly. Show kernel messages (and convince me that you
compiled the module with __SMP__ !). Show me output from /proc/nbdinfo
too. If it isn't there, end of story (failed module install, hence
failed module compile).

> nbd-client: client (-1) introduction bails out on client socket 5
> nbd-client: client (-1) closed socket 5


Peter