Package: parted / 3.2-7

probe-lvs-again.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 5e4e122454ac8ecf5b5fc006c0b03f0e8adc6c7c Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Sat, 9 Aug 2014 16:23:26 +0200
Subject: Probe LVM logical volumes again

parted 3.2 stopped probing LVM logical volumes.  This breaks
debian-installer, which wants to be able to "partition" these, at least
to the extent of being able to see them in the partitioner and operate
on them somewhat like ordinary partitions.  Revert to the old behaviour.

Bug-Debian: http://bugs.debian.org/757417
Forwarded: no
Last-Update: 2014-08-11

Patch-Name: probe-lvs-again.patch
---
 libparted/arch/linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 703294e..186ecd4 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -597,8 +597,8 @@ _probe_dm_devices ()
                if (stat (buf, &st) != 0)
                        continue;
 
-               if (_is_dm_major(major(st.st_rdev)) && _is_dmraid_device (buf)
-                   && !_dm_is_part(buf))
+               if (_is_dm_major(major(st.st_rdev))
+                   && !(_is_dmraid_device(buf) && _dm_is_part(buf)))
                        _ped_device_probe (buf);
        }
        closedir (mapper_dir);