summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pl
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-06-12 09:39:48 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-06-21 13:18:02 +0200
commit68823a8447aa3a77dcbd4087020252469269a02a (patch)
tree798003096a37d736df0a0c29642d77ebce129ed4 /perl-install/c/stuff.xs.pl
parent1f23f865523ae42079c0d2dd386af3cbfb34e668 (diff)
downloaddrakx-68823a8447aa3a77dcbd4087020252469269a02a.tar
drakx-68823a8447aa3a77dcbd4087020252469269a02a.tar.gz
drakx-68823a8447aa3a77dcbd4087020252469269a02a.tar.bz2
drakx-68823a8447aa3a77dcbd4087020252469269a02a.tar.xz
drakx-68823a8447aa3a77dcbd4087020252469269a02a.zip
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.
Diffstat (limited to 'perl-install/c/stuff.xs.pl')
-rwxr-xr-xperl-install/c/stuff.xs.pl6
1 files changed, 3 insertions, 3 deletions
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");
}