summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-11-22 15:58:13 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-11-22 16:04:19 +0100
commit280850cbe303d140ae7733f73bcb17c5903b60ed (patch)
tree0f1f8f1994e3f72b83930d22405387ea4cac8d00 /perl-install/partition_table.pm
parent9f3b9ebfdcebcfc9d202a9e2aa155278c83776f0 (diff)
downloaddrakx-280850cbe303d140ae7733f73bcb17c5903b60ed.tar
drakx-280850cbe303d140ae7733f73bcb17c5903b60ed.tar.gz
drakx-280850cbe303d140ae7733f73bcb17c5903b60ed.tar.bz2
drakx-280850cbe303d140ae7733f73bcb17c5903b60ed.tar.xz
drakx-280850cbe303d140ae7733f73bcb17c5903b60ed.zip
enhance partition_table doc
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 791e8254b..da53822d1 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -289,6 +289,12 @@ sub initialize {
will_tell_kernel($hd, 'init');
}
+=item read_primary($hd)
+
+Identify the partition table type of $hd and return a blessed $pt of type partition_table::TYPE.
+
+=cut
+
sub read_primary {
my ($hd) = @_;
@@ -351,6 +357,14 @@ sub read {
1;
}
+=item read_extended($hd, $extended, $need_removing_empty_extended)
+
+Actually load the partition list from the blessed $pt of type partition_table::TYPE.
+
+It uses partition_table::TYPE::read_one()
+
+=cut
+
sub read_extended {
my ($hd, $extended, $need_removing_empty_extended) = @_;
@@ -391,6 +405,12 @@ sub read_extended {
}
}
+=item will_tell_kernel($hd, $action, $o_part, $o_delay)
+
+Rembmer the actions to perform on the partition table that the kernel will later be made aware of.
+
+=cut
+
sub will_tell_kernel {
my ($hd, $action, $o_part, $o_delay) = @_;
@@ -430,6 +450,18 @@ sub will_tell_kernel_delayed {
}
}
+=item tell_kernel($hd, $tell_kernel)
+
+Tell the kernel that the partition layout has changed.
+
+Take a list of [$action, $part_number, $o_start, $o_size].
+Action can be either 'add' or 'del'.
+Size is not needed when deleting a partition.
+
+eg: ['add', '3', '5000', '1000']
+
+=cut
+
sub tell_kernel {
my ($hd, $tell_kernel) = @_;