summaryrefslogtreecommitdiffstats
path: root/debian/patches/probe-lvs-again.patch
blob: 77139c0b1260232000a0cf379f9107b149d3584a (plain)
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 20f1477293d180b2141ae7f1047ff5df84d42826 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 f6f72360..3bad1e6e 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -608,8 +608,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);