summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-02-23 18:08:13 +0100
committerThomas Backlund <tmb@mageia.org>2015-03-20 22:25:49 +0159
commit031168019ff8a7ee03c16f896620c3b0b6417257 (patch)
treeaa70c761e0e82fb4cecb0cc160a19af09d8e0233
parentf04716d1dca0722da0dee55316c50cba4d8ee1ae (diff)
downloaddrakx-031168019ff8a7ee03c16f896620c3b0b6417257.tar
drakx-031168019ff8a7ee03c16f896620c3b0b6417257.tar.gz
drakx-031168019ff8a7ee03c16f896620c3b0b6417257.tar.bz2
drakx-031168019ff8a7ee03c16f896620c3b0b6417257.tar.xz
drakx-031168019ff8a7ee03c16f896620c3b0b6417257.zip
bind ped_disk_commit_to_os
needed for next commit
-rwxr-xr-xperl-install/c/stuff.xs.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl
index 245746821..e6bcfa0db 100755
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -720,6 +720,22 @@ disk_add_partition(char * device_path, double start, double length, const char *
OUTPUT:
RETVAL
+int
+tell_kernel_to_reread_partition_table(char * device_path)
+ CODE:
+ PedDevice *dev = ped_device_get(device_path);
+ RETVAL=0;
+ if(dev) {
+ PedDisk* disk = ped_disk_new(dev);
+ if (disk) {
+ if (ped_disk_commit_to_os (disk))
+ RETVAL=1;
+ ped_disk_destroy(disk);
+ }
+ }
+ OUTPUT:
+ RETVAL
+
#define BACKTRACE_DEPTH 20