summaryrefslogtreecommitdiffstats
path: root/src/guestfs.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-13 14:42:21 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-13 22:05:45 +0100
commit4165e28b53d7024c38a171586acfb5c5b2c858b7 (patch)
treeaa24fa349cf069ee3ebc705fead19a61c909dd71 /src/guestfs.pod
parent919b7e3f6c476c291744b98354208b04b0a670b3 (diff)
downloadlibguestfs-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 'src/guestfs.pod')
-rw-r--r--src/guestfs.pod13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/guestfs.pod b/src/guestfs.pod
index a181b3fa..fd8b70ca 100644
--- a/src/guestfs.pod
+++ b/src/guestfs.pod
@@ -3201,6 +3201,14 @@ filesystem support (L<guestmount(1)>).
=head2 MAXIMUM NUMBER OF DISKS
+In libguestfs E<ge> 1.19.7, you can query the maximum number of disks
+that may be added by calling L</guestfs_max_disks>. In earlier
+versions of libguestfs (ie. where this call is not available) you
+should assume the maximum is 25.
+
+The rest of this section covers implementation details, which could
+change in future.
+
When using virtio-scsi disks (the default if available in qemu) the
current limit is B<255> disks. When using virtio-blk (the old
default) the limit is around B<27> disks, but may vary according to
@@ -3214,6 +3222,11 @@ to 31 slots, but some of these are used for other purposes.
One virtual disk is used by libguestfs internally.
+Before libguestfs 1.19.7, disk names had to be a single character
+(eg. C</dev/sda> through C</dev/sdz>), and since one disk is reserved,
+that meant the limit was 25. This has been fixed in more recent
+versions.
+
In future versions of libguestfs it should also be possible to "hot
plug" disks (add and remove disks after calling L</guestfs_launch>).
This also requires changes to qemu.