[parted-devel] /dev/mapper patch
David Cantrell
dcantrell at redhat.com
Mon Oct 9 19:19:18 UTC 2006
Here's the patch for adding /dev/mapper support to libparted.
ioctl() calls are not supported by /dev/mapper devices. A userspace
communication layer was created to fill the gap:
http://sources.redhat.com/dm/
The library that comes out of the device-mapper package is libdevmapper.
We use this in parted to read/write on these devices.
This patch is against parted trunk in subversion, but applies to
1.8.0rc1. By default, libdevmapper support is disabled, so apply the
patch and run:
./autogen.sh
./configure --enable-device-mapper
If this solves the problem(s) you've been running in to with /dev/mapper
reading and writing, I'd like to include it in 1.8.0rc2. You will need
libdevmapper installed since enabling this feature links libparted with
libdevmapper.
--
David Cantrell
Red Hat / Westford, MA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dm.patch
Type: text/x-patch
Size: 13323 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20061009/cd1d59bf/dm.bin
More information about the parted-devel
mailing list