[gnome-disk-utility] lvm2: Don't include ignored devices in the PV list
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] lvm2: Don't include ignored devices in the PV list
- Date: Tue, 23 Feb 2010 16:53:05 +0000 (UTC)
commit 0cd5edd4bfd790cd7d0a9dd147b04a47085097ed
Author: David Zeuthen <davidz redhat com>
Date: Tue Feb 23 11:38:20 2010 -0500
lvm2: Don't include ignored devices in the PV list
Prior to this patch we showed objects from each PV as well as
multipath object itself
Signed-off-by: David Zeuthen <davidz redhat com>
src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c b/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
index 853adab..e2833c7 100644
--- a/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
+++ b/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
@@ -504,6 +504,9 @@ find_pv_by_uuid (GduPool *pool,
for (l = devices; l != NULL; l = l->next) {
GduDevice *d = GDU_DEVICE (l->data);
+ if (gdu_device_should_ignore (d))
+ continue;
+
if (gdu_device_is_linux_lvm2_pv (d) && g_strcmp0 (gdu_device_linux_lvm2_pv_get_uuid (d), uuid) == 0) {
ret = g_object_ref (d);
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]