summaryrefslogtreecommitdiffstats
path: root/src/launch-appliance.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-23 18:56:20 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-23 20:17:24 +0100
commit3614d76b37ee8ef90f5a280e1bb51bccd87eaadb (patch)
treefcf80c1d1cee66100a7bb15c2dba319042bb0923 /src/launch-appliance.c
parenta6366f5dae0e8332cfdad0894aa6e5c7fc3faa2c (diff)
downloadlibguestfs-3614d76b37ee8ef90f5a280e1bb51bccd87eaadb.tar.gz
libguestfs-3614d76b37ee8ef90f5a280e1bb51bccd87eaadb.tar.xz
libguestfs-3614d76b37ee8ef90f5a280e1bb51bccd87eaadb.zip
tests: Move debug-drives testing API to launch.c and change the output.
It should work with any attach-method.
Diffstat (limited to 'src/launch-appliance.c')
-rw-r--r--src/launch-appliance.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/launch-appliance.c b/src/launch-appliance.c
index efc12844..815666fe 100644
--- a/src/launch-appliance.c
+++ b/src/launch-appliance.c
@@ -1030,27 +1030,6 @@ guestfs__get_pid (guestfs_h *g)
}
}
-/* Internal command to return the list of drives. */
-char **
-guestfs__debug_drives (guestfs_h *g)
-{
- size_t i, count;
- char **ret;
- struct drive *drv;
-
- for (count = 0, drv = g->drives; drv; count++, drv = drv->next)
- ;
-
- ret = safe_malloc (g, sizeof (char *) * (count + 1));
-
- for (i = 0, drv = g->drives; drv; i++, drv = drv->next)
- ret[i] = qemu_drive_param (g, drv, i);
-
- ret[count] = NULL;
-
- return ret; /* caller frees */
-}
-
/* Maximum number of disks. */
int
guestfs__max_disks (guestfs_h *g)