Re: block devices in userland

From: Pavel Machek
Date: Sat Jul 12 2008 - 03:07:32 EST


On Sat 2008-07-05 18:29:02, Enrico Weigelt wrote:
> * devzero@xxxxxx <devzero@xxxxxx> wrote:
> > >is there an API for writing block device drivers in userland ?
> >
> > i don`t know if there is some in vanilla, but maybe dm-userspace is worth taking a look at ?
> > see http://wiki.xensource.com/xenwiki/DmUserspace
>
> hmm, doesn't seem to be what I'm looking for - it just leaves the
> mapping of virtual to physical blocks to userland.
>
> What I need is passing the whole read/write requests to some userland
> deamon - these blocks won't come from any (in-kernel) block device,
> but an totally different kind of storage (eg. venti).

nbd, but be careful about deadlocks.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/