Mageia Bugzilla – Attachment 8901 Details for
Bug 20074
Partitions with Type: Empty corrupt the partition table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to add POD documentation for new partition table write API
0001-Document-new-partition-table-object-API-used-when-wr.patch (text/plain), 1.34 KB, created by
Martin Whitaker
on 2017-01-28 18:19:44 CET
(
hide
)
Description:
Patch to add POD documentation for new partition table write API
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-01-28 18:19:44 CET
Size:
1.34 KB
patch
obsolete
>From 361016f16945322678c7858dc285bbd5f758a6c2 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sat, 28 Jan 2017 17:16:36 +0000 >Subject: [PATCH] Document new partition table object API used when writing > partition tables. > > >diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm >index 76da83b..acadb25 100644 >--- a/perl-install/partition_table.pm >+++ b/perl-install/partition_table.pm >@@ -462,6 +462,17 @@ sub tell_kernel { > > Write the partition table > >+The partition_table_XXX object is expected to provide three functions to >+support writing the partition table, start_write(), write(), and end_write(). >+start_write() is called once at the beginning to initiate the write operation, >+write() is then called one or more times (depending on whether there are any >+extended partitions), and end_write() is called once to complete the write >+operation. For partition table types that support extended partitions (e.g. >+DOS), start_write() is expected to return a file handle to the raw device >+which is then passed to write() and end_write(), allowing the entire table >+to be written before closing the raw device. For partition table types that >+don't support extended partitions, this is optional, and the entire write >+operation can be performed in the single call to write(). > =cut > > sub write { >-- >2.10.2 >
From 361016f16945322678c7858dc285bbd5f758a6c2 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sat, 28 Jan 2017 17:16:36 +0000 Subject: [PATCH] Document new partition table object API used when writing partition tables. diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 76da83b..acadb25 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -462,6 +462,17 @@ sub tell_kernel { Write the partition table +The partition_table_XXX object is expected to provide three functions to +support writing the partition table, start_write(), write(), and end_write(). +start_write() is called once at the beginning to initiate the write operation, +write() is then called one or more times (depending on whether there are any +extended partitions), and end_write() is called once to complete the write +operation. For partition table types that support extended partitions (e.g. +DOS), start_write() is expected to return a file handle to the raw device +which is then passed to write() and end_write(), allowing the entire table +to be written before closing the raw device. For partition table types that +don't support extended partitions, this is optional, and the entire write +operation can be performed in the single call to write(). =cut sub write { -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20074
:
8880
|
8881
|
8882
|
8883
|
8901
|
8906
|
8907
|
8908
|
8909
|
8926
|
8927
|
8972