This commit is contained in:
committed by
Git OBS Bridge
parent
c114ca9b11
commit
56e5ad2fa6
15
handle_extended_devt.diff
Normal file
15
handle_extended_devt.diff
Normal file
@@ -0,0 +1,15 @@
|
||||
Index: LVM2.2.02.45/lib/filters/filter.c
|
||||
===================================================================
|
||||
--- LVM2.2.02.45.orig/lib/filters/filter.c
|
||||
+++ LVM2.2.02.45/lib/filters/filter.c
|
||||
@@ -179,6 +179,10 @@ static int _scan_proc_dev(const char *pr
|
||||
/* All types unrecognised initially */
|
||||
memset(_max_partitions_by_major, 0, sizeof(int) * NUMBER_OF_MAJORS);
|
||||
|
||||
+ /* Extended devt will use MAJOR 259
|
||||
+ Consider it an non-partitionable block device */
|
||||
+ _max_partitions_by_major[259] = 1;
|
||||
+
|
||||
if (dm_snprintf(proc_devices, sizeof(proc_devices),
|
||||
"%s/devices", proc) < 0) {
|
||||
log_error("Failed to create /proc/devices string");
|
Reference in New Issue
Block a user