qemu-io.c (e432cef9161685ea3dbb3f31a90820e53f74041e) qemu-io.c (d6e9098e10e82feeddb824d7c3d0cf61aff96c29)
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.

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

1279 bs = bdrv_new("hda");
1280 if (!bs)
1281 return 1;
1282
1283 if (growable) {
1284 flags |= BDRV_O_FILE;
1285 }
1286
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.

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

1279 bs = bdrv_new("hda");
1280 if (!bs)
1281 return 1;
1282
1283 if (growable) {
1284 flags |= BDRV_O_FILE;
1285 }
1286
1287 if (bdrv_open(bs, name, flags) < 0) {
1287 if (bdrv_open(bs, name, flags, NULL) < 0) {
1288 fprintf(stderr, "%s: can't open device %s\n", progname, name);
1289 bs = NULL;
1290 return 1;
1291 }
1292
1293 if (growable) {
1294 bs->growable = 1;
1295 }

--- 220 unchanged lines hidden ---
1288 fprintf(stderr, "%s: can't open device %s\n", progname, name);
1289 bs = NULL;
1290 return 1;
1291 }
1292
1293 if (growable) {
1294 bs->growable = 1;
1295 }

--- 220 unchanged lines hidden ---