From 68823a8447aa3a77dcbd4087020252469269a02a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 12 Jun 2015 09:39:48 -0400 Subject: no need to tell kernel to reread part table ...when adding or deleting a partition or setting its flag rationale: telling kernel to reread partition table is done later in partition_table::write() whereas partition_table::gpt::write() job is just to update partition table on disk. --- perl-install/c/stuff.xs.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/c') diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl index 229e3b8ab..72af65f27 100755 --- a/perl-install/c/stuff.xs.pl +++ b/perl-install/c/stuff.xs.pl @@ -637,7 +637,7 @@ set_partition_flag(char * device_path, int part_number, char *type) if (flag) RETVAL=ped_partition_set_flag(part, flag, 1); if (RETVAL) - RETVAL = ped_disk_commit(disk); + RETVAL = ped_disk_commit_to_dev(disk); } ped_disk_destroy(disk); } @@ -759,7 +759,7 @@ disk_del_partition(char * device_path, int part_number) } else { RETVAL=ped_disk_delete_partition(disk, part); if(RETVAL) { - RETVAL = ped_disk_commit(disk); + RETVAL = ped_disk_commit_to_dev(disk); } else { printf("del_partition failed\n"); } @@ -786,7 +786,7 @@ disk_add_partition(char * device_path, double start, double length, const char * } else RETVAL = ped_disk_add_partition (disk, part, constraint); if(RETVAL) { - RETVAL = ped_disk_commit(disk); + RETVAL = ped_disk_commit_to_dev(disk); } else { printf("add_partition failed\n"); } -- cgit v1.2.1