lvm2/handle_extended_devt.diff
Stephan Kulow f1a960eb91 Accepting request 138672 from Base:System
- lvm2.spec: merge rules for device-mapper and
  lvm2-clvm packages, so there is only one
  spec file and all packages are built consistently.

OBS-URL: https://build.opensuse.org/request/show/138672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lvm2?expand=0&rev=47
2012-10-23 17:40:13 +00:00

18 lines
579 B
Diff

---
lib/filters/filter.c | 4 ++++
1 file changed, 4 insertions(+)
--- LVM2.2.02.98.orig/lib/filters/filter.c
+++ LVM2.2.02.98/lib/filters/filter.c
@@ -180,6 +180,10 @@ static int _scan_proc_dev(const char *pr
/* All types unrecognised initially */
memset(_partitions, 0, sizeof(_partitions));
+ /* Extended devt will use MAJOR 259
+ Consider it an non-partitionable block device */
+ _partitions[259].max_partitions = 1;
+
if (dm_snprintf(proc_devices, sizeof(proc_devices),
"%s/devices", proc) < 0) {
log_error("Failed to create /proc/devices string");