diff options
Diffstat (limited to 'src/launch-libvirt.c')
-rw-r--r-- | src/launch-libvirt.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index bebdcfb1..7c3d189a 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -1193,6 +1193,13 @@ libvirt_error (guestfs_h *g, const char *fs, ...) free (msg); } +/* This backend assumes virtio-scsi is available. */ +static int +max_disks_libvirt (guestfs_h *g) +{ + return 255; +} + #else /* no libvirt or libxml2 at compile time */ #define NOT_IMPL(r) \ @@ -1211,9 +1218,16 @@ shutdown_libvirt (guestfs_h *g) NOT_IMPL (-1); } +static int +max_disks_libvirt (guestfs_h *g) +{ + NOT_IMPL (-1); +} + #endif /* no libvirt or libxml2 at compile time */ struct attach_ops attach_ops_libvirt = { .launch = launch_libvirt, .shutdown = shutdown_libvirt, + .max_disks = max_disks_libvirt, }; |