diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-13 14:42:21 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-13 22:05:45 +0100 |
commit | 4165e28b53d7024c38a171586acfb5c5b2c858b7 (patch) | |
tree | aa24fa349cf069ee3ebc705fead19a61c909dd71 /generator | |
parent | 919b7e3f6c476c291744b98354208b04b0a670b3 (diff) | |
download | libguestfs-4165e28b53d7024c38a171586acfb5c5b2c858b7.tar.gz libguestfs-4165e28b53d7024c38a171586acfb5c5b2c858b7.tar.xz libguestfs-4165e28b53d7024c38a171586acfb5c5b2c858b7.zip |
New API: guestfs_max_disks.
Returns the maximum number of disks that may be added to a handle.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generator_actions.ml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 120278aa..f5da217a 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1721,6 +1721,19 @@ mountpoint, then this unmounts it. See L<guestfs(3)/MOUNT LOCAL> for full documentation."); + ("max_disks", (RInt "disks", [], []), -1, [], + [], + "maximum number of disks that may be added", + "\ +Return the maximum number of disks that may be added to a +handle (eg. by C<guestfs_add_drive_opts> and similar calls). + +This function was added in libguestfs 1.19.7. In previous +versions of libguestfs the limit was 25. + +See L<guestfs(3)/MAXIMUM NUMBER OF DISKS> for additional +information on this topic."); + ] (* daemon_functions are any functions which cause some action |