From: Richard W.M. Jones Date: Tue, 17 May 2011 14:52:28 +0000 (+0100) Subject: generator: Mark sfdisk functions as deprecated. X-Git-Tag: 1.10.4~28 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=87a2ee5096a0aff740f0682a34b5d87d0c8ee00c;p=libguestfs.git generator: Mark sfdisk functions as deprecated. Point to the part-* API calls as replacements. (cherry picked from commit 12414ddc020f94e75a791815d2c1ac2b0d76eaf1) --- diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 073e847..96748c5 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -2132,7 +2132,7 @@ example C."); ("sfdisk", (RErr, [Device "device"; Int "cyls"; Int "heads"; Int "sectors"; - StringList "lines"], []), 43, [DangerWillRobinson], + StringList "lines"], []), 43, [DangerWillRobinson; DeprecatedBy "part_add"], [], "create partitions on a block device", "\ @@ -3222,7 +3222,7 @@ volume to match the new size of the underlying device."); ("sfdisk_N", (RErr, [Device "device"; Int "partnum"; Int "cyls"; Int "heads"; Int "sectors"; - String "line"], []), 99, [DangerWillRobinson], + String "line"], []), 99, [DangerWillRobinson; DeprecatedBy "part_add"], [], "modify a single partition on a block device", "\ @@ -3234,7 +3234,7 @@ pass C<0> for the cyls/heads/sectors parameters. See also: C"); - ("sfdisk_l", (RString "partitions", [Device "device"], []), 100, [], + ("sfdisk_l", (RString "partitions", [Device "device"], []), 100, [DeprecatedBy "part_list"], [], "display the partition table", "\ @@ -3853,7 +3853,7 @@ This function is primarily intended for use by programs. To get a simple list of names, use C. To get a printable directory for human consumption, use C."); - ("sfdiskM", (RErr, [Device "device"; StringList "lines"], []), 139, [DangerWillRobinson], + ("sfdiskM", (RErr, [Device "device"; StringList "lines"], []), 139, [DangerWillRobinson; DeprecatedBy "part_add"], [], "create partitions on a block device", "\