Mageia Bugzilla – Attachment 9041 Details for
Bug 20264
Using "clear all" in diskdrake or in installer partitioning on GPT disk results in "failed to del partition #1 on /dev/..." message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
simplify using ped_disk_probe()
0004-simplify-using-ped_disk_probe.patch (text/plain), 856 bytes, created by
Thierry Vignaud
on 2017-03-07 22:10:45 CET
(
hide
)
Description:
simplify using ped_disk_probe()
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2017-03-07 22:10:45 CET
Size:
856 bytes
patch
obsolete
>From aac35cb71238f8928086c3bad4dd01c6d6469337 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Tue, 7 Mar 2017 22:02:49 +0100 >Subject: [PATCH 4/6] simplify using ped_disk_probe() > >--- > perl-install/c/stuff.xs.pl | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl >index f54a868..c8dc613 100755 >--- a/perl-install/c/stuff.xs.pl >+++ b/perl-install/c/stuff.xs.pl >@@ -641,10 +641,9 @@ get_disk_type(char * device_path) > PedDevice *dev = ped_device_get(device_path); > RETVAL = NULL; > if(dev) { >- PedDisk* disk = ped_disk_new(dev); >- if(disk) { >- RETVAL = disk->type->name; >- ped_disk_destroy(disk); >+ PedDiskType* type = ped_disk_probe(dev); >+ if(type) { >+ RETVAL = type->name; > } > } > OUTPUT: >-- >2.10.2 >
From aac35cb71238f8928086c3bad4dd01c6d6469337 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Tue, 7 Mar 2017 22:02:49 +0100 Subject: [PATCH 4/6] simplify using ped_disk_probe() --- perl-install/c/stuff.xs.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl index f54a868..c8dc613 100755 --- a/perl-install/c/stuff.xs.pl +++ b/perl-install/c/stuff.xs.pl @@ -641,10 +641,9 @@ get_disk_type(char * device_path) PedDevice *dev = ped_device_get(device_path); RETVAL = NULL; if(dev) { - PedDisk* disk = ped_disk_new(dev); - if(disk) { - RETVAL = disk->type->name; - ped_disk_destroy(disk); + PedDiskType* type = ped_disk_probe(dev); + if(type) { + RETVAL = type->name; } } OUTPUT: -- 2.10.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20264
:
9028
|
9029
|
9030
|
9031
|
9037
|
9038
|
9039
|
9040
| 9041 |
9042
|
9043
|
9047
|
9054
|
9055
|
9060
|
9082