Re: nbd-server

2001-09-28 Thread wouter

On Fri, 28 Sep 2001, Roland McGrath wrote:

> The code is in the Hurd development CVS repository (in libstore/nbd.c).
> See http://savannah.gnu.org/projects/hurd/ for how to access that.

OK, but what I actually meant to ask was whether I need to apply some
patches to nbd-client or nbd-server to make it work with The Hurd.

We'll probably need to change the "#inclue " in cliserv.h to
something saner, but is there something else that needs to be done?

> But I wouldn't recommend that you try this code unless you are already
> comfortable with compiling the Hurd and have (successful) experience with
> running your own Hurd.

I did not intend to do that; I only wanted to inform Pavel Machek of this 
port. But for that, I needed this information...

> nbd cannot currently be used for paging on the Hurd.  (We only support
> paging to portions of local disk, including files on disk.)  But the issues
> are well-understood here and we already know what implementation work is
> required to make it possible to do paging over the network in general.
> (i.e., if we did the work necessary to e.g. page to NFS files, that would
> also make it possible to use nbd for paging.)

OK, thanks.

-- 
wouter dot verhelst at advalvas in Belgium

This is Linux world. On a quiet day, you can hear Windows reboot.


___
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd



Re: nbd-server

2001-09-28 Thread Wouter Verhelst

On Fri, 28 Sep 2001, Roland McGrath wrote:

> I took a quick look at nbd and it's so simple that I just implemented the
> client side for the Hurd.  That is, I've added an "nbd" store type to libstore.
> So to use it do e.g.:
> 
>   settrans /dev/nb0 /hurd/storeio -Tnbd hostname:1234
> 
> to connect to TCP port 1234 on "hostname".  That gives the store a
> blocksize of 1, since the server protocol doesn't impose any.
> You can set the block size of the store in the name, e.g.:
> 
>   settrans /dev/nb0 /hurd/storeio -Tnbd hostname:1234/1024
> 
> does the same as the above, but the resulting device will have a block size
> of 1024 (the default for Linux nbd devices).
> 
> As usual, I've compiled this but not tested it at all.  I'm sure there are
> some stupid bugs.  Hurd folks, please give this a try if you feel like it
> (you can point it at nbd-server on your Linux machine).

Looks great; however, I do have a couple questions:
- Where can I find the code? ;-)
- Pavel Machek, the author of NBD under Linux has put special effort in
  making his code deadlock-free in case the block device is used as 
  swapspace device (a deadlock could arise if nbd-client needs more memory
  to handle the reads necessary to handle a page fault...). Did you think
  about this situation, or should I consider your port as "not deadlock
  safe"?

-- 
wouter dot verhelst at advalvas dot be

"Human knowledge belongs to the world"
  -- From the movie "Antitrust"

rm -rf /bin/laden


___
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd