static guestfs_h *g;
static int suppress_error = 0;
-/* This will be 's' or 'h' depending on whether the guest kernel
- * names IDE devices /dev/sd* or /dev/hd*.
- */
-static char devchar = 's';
-
static void print_error (guestfs_h *g, void *data, const char *msg)
{
if (!suppress_error)
/* InitNone|InitEmpty for test_ntfs_3g_probe_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for ntfs_3g_probe (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ntfs";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_ntfs_3g_probe (g, 1, device);
/* InitNone|InitEmpty for test_ntfs_3g_probe_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for ntfs_3g_probe (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_ntfs_3g_probe (g, 1, device);
/* InitNone|InitEmpty for test_sleep_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* InitBasicFS for test_find_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_find_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_find_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_lvresize_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
char expected[] = "test content";
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_zerofree_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
char expected[] = "test file";
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext3";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
}
{
char pathordevice[] = "/dev/sda1";
- pathordevice[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_umount (g, pathordevice);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_zerofree (g, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_hexdump_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_strings_e_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_strings_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_strings_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_equal_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_equal_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_equal_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_ping_daemon_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* InitNone|InitEmpty for test_dmesg_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* InitNone|InitEmpty for test_drop_caches_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* InitBasicFS for test_mv_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mv_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_cp_a_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_cp_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_cp_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_cp_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_grub_install_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
{
char root[] = "/";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_grub_install (g, root, device);
/* InitBasicFS for test_zero_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char expected[] = "data";
{
char pathordevice[] = "/dev/sda1";
- pathordevice[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_umount (g, pathordevice);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_zero (g, device);
}
{
char path[] = "/dev/sda1";
- path[5] = devchar;
char *r;
suppress_error = 0;
r = guestfs_file (g, path);
/* InitBasicFS for test_fsck_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* TestOutputInt for fsck (0) */
{
char pathordevice[] = "/dev/sda1";
- pathordevice[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_umount (g, pathordevice);
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_fsck (g, fstype, device);
/* InitBasicFS for test_fsck_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* TestOutputInt for fsck (1) */
{
char pathordevice[] = "/dev/sda1";
- pathordevice[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_umount (g, pathordevice);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_zero (g, device);
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_fsck (g, fstype, device);
/* InitBasicFS for test_set_e2uuid_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char expected[] = "a3a61220-882b-4f61-89f4-cf24dcc7297d";
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char uuid[] = "a3a61220-882b-4f61-89f4-cf24dcc7297d";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char *r;
suppress_error = 0;
r = guestfs_get_e2uuid (g, device);
/* InitBasicFS for test_set_e2uuid_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char expected[] = "";
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char uuid[] = "clear";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char *r;
suppress_error = 0;
r = guestfs_get_e2uuid (g, device);
/* InitBasicFS for test_set_e2uuid_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* TestRun for set_e2uuid (2) */
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char uuid[] = "random";
int r;
suppress_error = 0;
/* InitBasicFS for test_set_e2uuid_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* TestRun for set_e2uuid (3) */
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char uuid[] = "time";
int r;
suppress_error = 0;
/* InitBasicFS for test_set_e2label_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char expected[] = "testlabel";
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char label[] = "testlabel";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char *r;
suppress_error = 0;
r = guestfs_get_e2label (g, device);
/* InitNone|InitEmpty for test_pvremove_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for pvremove (0) */
+ /* TestOutputListOfDevices for pvremove (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvremove (g, device);
/* InitNone|InitEmpty for test_pvremove_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for pvremove (1) */
+ /* TestOutputListOfDevices for pvremove (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvremove (g, device);
/* InitNone|InitEmpty for test_pvremove_2 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for pvremove (2) */
+ /* TestOutputListOfDevices for pvremove (2) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvremove (g, device);
/* InitNone|InitEmpty for test_vgremove_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for vgremove (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_vgremove_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for vgremove (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_lvremove_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for lvremove (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_lvremove_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for lvremove (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_lvremove_2 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for lvremove (2) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitBasicFS for test_mount_ro_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mount_ro_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_tgz_in_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_tar_in_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_4: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_5: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_6: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_7: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_checksum_8: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char expected[] = "46d6ca27ee07cdc6fa99c2e138cc522c";
{
char device[] = "/dev/sdd";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_download_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_upload_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_blockdev_rereadpt_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestRun for blockdev_rereadpt (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_rereadpt (g, device);
/* InitNone|InitEmpty for test_blockdev_flushbufs_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestRun for blockdev_flushbufs (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_flushbufs (g, device);
/* InitNone|InitEmpty for test_blockdev_getsize64_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for blockdev_getsize64 (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int64_t r;
suppress_error = 0;
r = guestfs_blockdev_getsize64 (g, device);
/* InitNone|InitEmpty for test_blockdev_getsz_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for blockdev_getsz (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int64_t r;
suppress_error = 0;
r = guestfs_blockdev_getsz (g, device);
/* InitNone|InitEmpty for test_blockdev_getbsz_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for blockdev_getbsz (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_getbsz (g, device);
/* InitNone|InitEmpty for test_blockdev_getss_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputInt for blockdev_getss (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_getss (g, device);
/* InitNone|InitEmpty for test_blockdev_getro_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputTrue for blockdev_getro (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setro (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_getro (g, device);
/* InitNone|InitEmpty for test_blockdev_setrw_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputFalse for blockdev_setrw (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_getro (g, device);
/* InitNone|InitEmpty for test_blockdev_setro_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputTrue for blockdev_setro (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setro (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_getro (g, device);
/* InitBasicFS for test_statvfs_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_lstat_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_stat_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_4: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_5: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_6: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_7: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_8: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_9: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_lines_10: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_4: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_5: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_6: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_7: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_8: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_9: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_10: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_command_11: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_file_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_file_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_file_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_umount_all_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_umount_all_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for umount_all (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
{
char fstype[] = "ext2";
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
{
char fstype[] = "ext2";
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
char mountpoint[] = "/mp1";
int r;
suppress_error = 0;
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
char mountpoint[] = "/mp1/mp2";
int r;
suppress_error = 0;
/* InitBasicFS for test_mounts_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
if (r == -1)
return -1;
}
- /* TestOutputList for mounts (0) */
+ /* TestOutputListOfDevices for mounts (0) */
{
char **r;
int i;
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_mounts_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
/* InitNone|InitEmpty for test_umount_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for umount (0) */
+ /* TestOutputListOfDevices for umount (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_umount_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
/* InitNone|InitEmpty for test_umount_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for umount (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_4: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_write_file_5: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_mkfs_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
char expected[] = "new file contents";
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_lvcreate_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for lvcreate (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG1";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char physvols_1[] = "/dev/sda2";
- physvols_1[5] = devchar;
char *physvols[] = {
physvols_0,
physvols_1,
{
char volgroup[] = "VG2";
char physvols_0[] = "/dev/sda3";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_vgcreate_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for vgcreate (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG1";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char physvols_1[] = "/dev/sda2";
- physvols_1[5] = devchar;
char *physvols[] = {
physvols_0,
physvols_1,
{
char volgroup[] = "VG2";
char physvols_0[] = "/dev/sda3";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_pvcreate_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for pvcreate (0) */
+ /* TestOutputListOfDevices for pvcreate (0) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_pvcreate_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
}
{
char expected[] = "/dev/sda2";
- expected[5] = devchar;
+ r[1][5] = 's';
if (strcmp (r[1], expected) != 0) {
fprintf (stderr, "test_pvcreate_0: expected \"%s\" but got \"%s\"\n", expected, r[1]);
return -1;
}
{
char expected[] = "/dev/sda3";
- expected[5] = devchar;
+ r[2][5] = 's';
if (strcmp (r[2], expected) != 0) {
fprintf (stderr, "test_pvcreate_0: expected \"%s\" but got \"%s\"\n", expected, r[2]);
return -1;
/* InitBasicFS for test_is_dir_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_is_dir_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_is_file_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_is_file_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_exists_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_exists_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_p_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_p_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_p_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_p_3: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_p_4: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_mkdir_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rm_rf_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rmdir_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rmdir_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rmdir_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rm_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rm_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_rm_2: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_read_lines_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_read_lines_1: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFSonLVM for test_lvs_0: create ext2 on /dev/VG/LV */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_lvs_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for lvs (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG1";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char physvols_1[] = "/dev/sda2";
- physvols_1[5] = devchar;
char *physvols[] = {
physvols_0,
physvols_1,
{
char volgroup[] = "VG2";
char physvols_0[] = "/dev/sda3";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitBasicFSonLVM for test_vgs_0: create ext2 on /dev/VG/LV */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitNone|InitEmpty for test_vgs_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* TestOutputList for vgs (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG1";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char physvols_1[] = "/dev/sda2";
- physvols_1[5] = devchar;
char *physvols[] = {
physvols_0,
physvols_1,
{
char volgroup[] = "VG2";
char physvols_0[] = "/dev/sda3";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
/* InitBasicFSonLVM for test_pvs_0: create ext2 on /dev/VG/LV */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
{
char volgroup[] = "VG";
char physvols_0[] = "/dev/sda1";
- physvols_0[5] = devchar;
char *physvols[] = {
physvols_0,
NULL
if (r == -1)
return -1;
}
- /* TestOutputList for pvs (0) */
+ /* TestOutputListOfDevices for pvs (0) */
{
char **r;
int i;
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_pvs_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
/* InitNone|InitEmpty for test_pvs_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for pvs (1) */
+ /* TestOutputListOfDevices for pvs (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda2";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char device[] = "/dev/sda3";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_pvcreate (g, device);
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_pvs_1: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
}
{
char expected[] = "/dev/sda2";
- expected[5] = devchar;
+ r[1][5] = 's';
if (strcmp (r[1], expected) != 0) {
fprintf (stderr, "test_pvs_1: expected \"%s\" but got \"%s\"\n", expected, r[1]);
return -1;
}
{
char expected[] = "/dev/sda3";
- expected[5] = devchar;
+ r[2][5] = 's';
if (strcmp (r[2], expected) != 0) {
fprintf (stderr, "test_pvs_1: expected \"%s\" but got \"%s\"\n", expected, r[2]);
return -1;
/* InitBasicFS for test_list_partitions_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
if (r == -1)
return -1;
}
- /* TestOutputList for list_partitions (0) */
+ /* TestOutputListOfDevices for list_partitions (0) */
{
char **r;
int i;
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_list_partitions_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
/* InitNone|InitEmpty for test_list_partitions_1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for list_partitions (1) */
+ /* TestOutputListOfDevices for list_partitions (1) */
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",10";
char lines_1[] = ",20";
char lines_2[] = ",";
}
{
char expected[] = "/dev/sda1";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_list_partitions_1: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
}
{
char expected[] = "/dev/sda2";
- expected[5] = devchar;
+ r[1][5] = 's';
if (strcmp (r[1], expected) != 0) {
fprintf (stderr, "test_list_partitions_1: expected \"%s\" but got \"%s\"\n", expected, r[1]);
return -1;
}
{
char expected[] = "/dev/sda3";
- expected[5] = devchar;
+ r[2][5] = 's';
if (strcmp (r[2], expected) != 0) {
fprintf (stderr, "test_list_partitions_1: expected \"%s\" but got \"%s\"\n", expected, r[2]);
return -1;
/* InitNone|InitEmpty for test_list_devices_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
if (r == -1)
return -1;
}
- /* TestOutputList for list_devices (0) */
+ /* TestOutputListOfDevices for list_devices (0) */
{
char **r;
int i;
}
{
char expected[] = "/dev/sda";
- expected[5] = devchar;
+ r[0][5] = 's';
if (strcmp (r[0], expected) != 0) {
fprintf (stderr, "test_list_devices_0: expected \"%s\" but got \"%s\"\n", expected, r[0]);
return -1;
}
{
char expected[] = "/dev/sdb";
- expected[5] = devchar;
+ r[1][5] = 's';
if (strcmp (r[1], expected) != 0) {
fprintf (stderr, "test_list_devices_0: expected \"%s\" but got \"%s\"\n", expected, r[1]);
return -1;
}
{
char expected[] = "/dev/sdc";
- expected[5] = devchar;
+ r[2][5] = 's';
if (strcmp (r[2], expected) != 0) {
fprintf (stderr, "test_list_devices_0: expected \"%s\" but got \"%s\"\n", expected, r[2]);
return -1;
}
{
char expected[] = "/dev/sdd";
- expected[5] = devchar;
+ r[3][5] = 's';
if (strcmp (r[3], expected) != 0) {
fprintf (stderr, "test_list_devices_0: expected \"%s\" but got \"%s\"\n", expected, r[3]);
return -1;
/* InitBasicFS for test_ls_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_cat_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitBasicFS for test_touch_0: create ext2 on /dev/sda1 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
}
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
/* InitNone|InitEmpty for test_sync_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
/* InitNone|InitEmpty for test_mount_0 */
{
char device[] = "/dev/sda";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_blockdev_setrw (g, device);
char expected[] = "new file contents";
{
char device[] = "/dev/sda";
- device[5] = devchar;
char lines_0[] = ",";
char *lines[] = {
lines_0,
{
char fstype[] = "ext2";
char device[] = "/dev/sda1";
- device[5] = devchar;
int r;
suppress_error = 0;
r = guestfs_mkfs (g, fstype, device);
}
{
char device[] = "/dev/sda1";
- device[5] = devchar;
char mountpoint[] = "/";
int r;
suppress_error = 0;
char c = 0;
int failed = 0;
const char *filename;
- int fd, i;
+ int fd;
int nr_tests, test_num = 0;
- char **devs;
no_test_warnings ();
exit (1);
}
- /* Detect if the appliance uses /dev/sd* or /dev/hd* in device
- * names. This changed between RHEL 5 and RHEL 6 so we have to
- * support both.
- */
- devs = guestfs_list_devices (g);
- if (devs == NULL || devs[0] == NULL) {
- printf ("guestfs_list_devices FAILED\n");
- exit (1);
- }
- if (strncmp (devs[0], "/dev/sd", 7) == 0)
- devchar = 's';
- else if (strncmp (devs[0], "/dev/hd", 7) == 0)
- devchar = 'h';
- else {
- printf ("guestfs_list_devices returned unexpected string '%s'\n",
- devs[0]);
- exit (1);
- }
- for (i = 0; devs[i] != NULL; ++i)
- free (devs[i]);
- free (devs);
-
nr_tests = 146;
test_num++;