[dm-devel] [PATCH] Add dm-userspace target

Reilly, Stephen (MRO) Steve.Reilly at hp.com
Fri Jun 16 03:05:24 UTC 2006


Oops, I just realize you are talking about the LVM portion of the
code... my bias is multipathing and thus my confusion... sorry


-----Original Message-----
From: dm-devel-bounces at redhat.com [mailto:dm-devel-bounces at redhat.com]
On Behalf Of Dan Smith
Sent: Thursday, June 15, 2006 11:05 PM
To: device-mapper development
Cc: stsd-securelinux-hp; Patterson, Andrew D (Linux R&D)
Subject: Re: [dm-devel] [PATCH] Add dm-userspace target

RS> Could you be more specific by the phrase of "block placement
RS> decisions" what placement are you referring too?

Sure.

So, take a complex format like qcow for example.  All of the data for
the disk is in the file, but clearly not in linear order, right?  Not
only is it non-linear, but it's in some form that requires some
understanding of a sophisticated set of metadata to linearize it.
But, since the data is just jumbled up, we can use device-mapper to
create a linear pseudo device that maps the linear blocks to their
correct location in the qcow file.  However, putting this logic in the
kernel is mildly ugly, and gets extremely ugly when you talk about
adding another format, such as vmdk, msvhd, etc.

With dm-userspace and the help of my userspace application (cowd), you
can mount these files as if they were normal disks in linux.

So, by giving a userspace application real-time control over the
mappings, we can push the complexity into userspace.  There are a lot
of other nifty things you can do from the comfort of userspace once
you have this generic enabler in the kernel to act on your behalf.
*Lots* :)

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com




More information about the dm-devel mailing list