Skip to contentSkip to conversation

Portable NBD server

ANNOUNCE Andy Isaacson 2 participants 2 messages Jul 13, 2004

lore
Share & tools
lore
#0 lore raw

Apologies for the cross-post, but this is relevant to all three lists. Please don't cross-post followups (unless they're relevant to several lists); obey the Reply-To or reply to me directly.

The NBD server in nbd-2.7.1 from nbd.sourceforge.net doesn't compile on non-Linux hosts, even though the server doesn't do anything inherently nonportable. So I wrote a new one that should work fine on any POSIX host with 'long long'.

I've successfully used it to recover log data on a dirty ext3 filesystem that ended up in an OpenBSD box.

I hope this proves useful to someone.

http://web.hexapodia.org/~adi/nbd/nbdsvr-0.1.tar.gz
http://web.hexapodia.org/~adi/nbd/

-andy

#1 lore raw

Op di 13-07-2004, om 19:45 schreef Andy Isaacson:

Quoted 6 lines

Apologies for the cross-post, but this is relevant to all three lists. Please don't cross-post followups (unless they're relevant to several lists); obey the Reply-To or reply to me directly.

The NBD server in nbd-2.7.1 from nbd.sourceforge.net doesn't compile on non-Linux hosts,

Actually, it does; it compiles and runs on (at least) FreeBSD and The Hurd. If it doesn't compile, I'd be happy to learn about it, and will (most likely) incorporate any patches that might be relevant; the intention, in any case, is for it to compile on anything resembling GCC and some C library (although I'm quite aware that it probably doesn't reach that goal at the moment, mostly since I didn't test on anything else than the above two platforms, and Linux).

Signature · 6 lines
         EARTH
     smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
         WATER
 -- with thanks to fortune