]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libblkid: Optimize devicemapper support
authorTheodore Ts'o <tytso@mit.edu>
Tue, 26 Aug 2008 12:13:56 +0000 (08:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 03:53:22 +0000 (23:53 -0400)
commitf4e89bcdf2870820ff262e3aed04cbb5374d7fdd
tree27ff73aadba70831e3c01f7a49863dabc6650c10
parent5dd77dbe5a0ac6d78c1c6441fae4087be56d9088
libblkid: Optimize devicemapper support

This commit works by removing all calls from libdevmapper altogether,
and using the standard support for "normal" non-dm devices.

It depends on dm devices being placed in /dev/mapper (but the previous
code had this dependency anyway), and /proc/partitions containing dm
devices.

We don't actually rip out the libdevmapper code in this commit, but
just disable it via #undef HAVE_DEVMAPPER, just so it's easier to
review and understand the fundamental code changes.  A subsequent
commit will remove the libdevmapper code, as well as unexport
the blkid_devdirs string array.

Thanks to Karel Zak for inspiring me to look at the dm code in blkid,
so I could realize how much it deserved to ripped out by its roots.  :-)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/libblkid1.symbols
lib/blkid/blkidP.h
lib/blkid/devname.c
lib/blkid/devno.c