[gnome-disk-utility/udisks2-port] Skip FLAGS_CREATE_ONLY partion types in "Edit Partition" dialog
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Skip FLAGS_CREATE_ONLY partion types in "Edit Partition" dialog
- Date: Wed, 9 Nov 2011 18:22:12 +0000 (UTC)
commit 6987993306b1c78f32990d16d97bd403ffe0907b
Author: David Zeuthen <davidz redhat com>
Date: Wed Nov 9 13:21:17 2011 -0500
Skip FLAGS_CREATE_ONLY partion types in "Edit Partition" dialog
Specifically, this includes DOS extended partitions of type 0x05, 0x0f
and 0x85.
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gdupartitiondialog.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gdupartitiondialog.c b/src/palimpsest/gdupartitiondialog.c
index 40bd1e1..c81e288 100644
--- a/src/palimpsest/gdupartitiondialog.c
+++ b/src/palimpsest/gdupartitiondialog.c
@@ -193,6 +193,12 @@ edit_partition_populate (EditPartitionData *data)
gchar *s;
GtkTreeIter iter;
+ /* skip type like 'Extended Partition' (dos 0x05) since we can't
+ * just change the partition type to that
+ */
+ if (info->flags & UDISKS_PARTITION_TYPE_INFO_FLAGS_CREATE_ONLY)
+ continue;
+
if (g_strcmp0 (info->table_subtype, cur_table_subtype) != 0)
{
s = g_strdup_printf ("<i>%s</i>",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]