qemu-io.c (c1b94a0ed2332b08ea7799c003c3ee9996782a3c) qemu-io.c (98522f63f40adaebc412481e1d2e9170160d4539)
1/*
2 * Command line utility to exercise the QEMU I/O path.
3 *
4 * Copyright (C) 2009 Red Hat, Inc.
5 * Copyright (c) 2003-2005 Silicon Graphics, Inc.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 53 unchanged lines hidden (view full) ---

62 NULL, &local_err))
63 {
64 fprintf(stderr, "%s: can't open device %s: %s\n", progname, name,
65 error_get_pretty(local_err));
66 error_free(local_err);
67 return 1;
68 }
69 } else {
1/*
2 * Command line utility to exercise the QEMU I/O path.
3 *
4 * Copyright (C) 2009 Red Hat, Inc.
5 * Copyright (c) 2003-2005 Silicon Graphics, Inc.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 53 unchanged lines hidden (view full) ---

62 NULL, &local_err))
63 {
64 fprintf(stderr, "%s: can't open device %s: %s\n", progname, name,
65 error_get_pretty(local_err));
66 error_free(local_err);
67 return 1;
68 }
69 } else {
70 qemuio_bs = bdrv_new("hda");
70 qemuio_bs = bdrv_new("hda", &error_abort);
71
72 if (bdrv_open(&qemuio_bs, name, NULL, opts, flags, NULL, &local_err)
73 < 0)
74 {
75 fprintf(stderr, "%s: can't open device %s: %s\n", progname, name,
76 error_get_pretty(local_err));
77 error_free(local_err);
78 bdrv_unref(qemuio_bs);

--- 408 unchanged lines hidden ---
71
72 if (bdrv_open(&qemuio_bs, name, NULL, opts, flags, NULL, &local_err)
73 < 0)
74 {
75 fprintf(stderr, "%s: can't open device %s: %s\n", progname, name,
76 error_get_pretty(local_err));
77 error_free(local_err);
78 bdrv_unref(qemuio_bs);

--- 408 unchanged lines hidden ---