qemu-nbd.c (087edb503afebf184f07078900efc26c73035e98) | qemu-nbd.c (98522f63f40adaebc412481e1d2e9170160d4539) |
---|---|
1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 643 unchanged lines hidden (view full) --- 652 drv = bdrv_find_format(fmt); 653 if (!drv) { 654 errx(EXIT_FAILURE, "Unknown file format '%s'", fmt); 655 } 656 } else { 657 drv = NULL; 658 } 659 | 1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 643 unchanged lines hidden (view full) --- 652 drv = bdrv_find_format(fmt); 653 if (!drv) { 654 errx(EXIT_FAILURE, "Unknown file format '%s'", fmt); 655 } 656 } else { 657 drv = NULL; 658 } 659 |
660 bs = bdrv_new("hda"); | 660 bs = bdrv_new("hda", &error_abort); 661 |
661 srcpath = argv[optind]; 662 ret = bdrv_open(&bs, srcpath, NULL, NULL, flags, drv, &local_err); 663 if (ret < 0) { 664 errno = -ret; 665 err(EXIT_FAILURE, "Failed to bdrv_open '%s': %s", argv[optind], 666 error_get_pretty(local_err)); 667 } 668 --- 88 unchanged lines hidden --- | 662 srcpath = argv[optind]; 663 ret = bdrv_open(&bs, srcpath, NULL, NULL, flags, drv, &local_err); 664 if (ret < 0) { 665 errno = -ret; 666 err(EXIT_FAILURE, "Failed to bdrv_open '%s': %s", argv[optind], 667 error_get_pretty(local_err)); 668 } 669 --- 88 unchanged lines hidden --- |