partitions returned in /proc/partitions that begin with
with the string "lvm".
+2002-10-31 Theodore Ts'o <tytso@mit.edu>
+
+ * get_device_by_label.c (read_partitions): Pay attention to
+ partitions returned in /proc/partitions that begin with
+ with the string "lvm".
+
2002-10-30 Theodore Ts'o <tytso@mit.edu>
* Makefile.in (install): Search all compression extensions when
/* skip entire disk (minor 0, 64, ... on ide;
0, 16, ... on sd) */
/* heuristic: partition name ends in a digit */
+ /* OR partition name starts with 'lvm' */
for(s = ptname; *s; s++);
- if (isdigit(s[-1])) {
+ if (isdigit(s[-1]) || !strncmp(ptname, "lvm", 3)) {
/*
* We first look in /dev for the device, but
* if we don't find it, or if the stat