2008-07-04 22:16:25

by Enrico Weigelt

[permalink] [raw]
Subject: block devices in userland


Hi folks,


is there an API for writing block device drivers in userland ?


thx
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------


2008-07-04 22:51:39

by Roland

[permalink] [raw]
Subject: Re: block devices in userland

>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

regards
roland




List: linux-kernel
Subject: block devices in userland
From: Enrico Weigelt <weigelt () metux ! de>
Date: 2008-07-04 22:11:28
Message-ID: 20080704221127.GA25636 () nibiru ! local
[Download message RAW]


Hi folks,


is there an API for writing block device drivers in userland ?


thx
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------

______________________________________________________________
Jeden Monat 1 hochkar?tiger maxdome-Blockbuster GRATIS!
Exklusiv f?r alle WEB.DE Nutzer. http://www.blockbuster.web.de

2008-07-05 16:31:19

by Enrico Weigelt

[permalink] [raw]
Subject: Re: block devices in userland

* [email protected] <[email protected]> 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).


cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------

2008-07-12 07:07:28

by Pavel Machek

[permalink] [raw]
Subject: Re: block devices in userland

On Sat 2008-07-05 18:29:02, Enrico Weigelt wrote:
> * [email protected] <[email protected]> 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