iscsi.c (21e2db72601c48fa593ef7187faf17f324d925c5) iscsi.c (98522f63f40adaebc412481e1d2e9170160d4539)
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 * Copyright (c) 2012-2013 Peter Lieven <pl@kamp.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

1396 Error **errp)
1397{
1398 int ret = 0;
1399 int64_t total_size = 0;
1400 BlockDriverState *bs;
1401 IscsiLun *iscsilun = NULL;
1402 QDict *bs_options;
1403
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 * Copyright (c) 2012-2013 Peter Lieven <pl@kamp.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

1396 Error **errp)
1397{
1398 int ret = 0;
1399 int64_t total_size = 0;
1400 BlockDriverState *bs;
1401 IscsiLun *iscsilun = NULL;
1402 QDict *bs_options;
1403
1404 bs = bdrv_new("");
1404 bs = bdrv_new("", &error_abort);
1405
1406 /* Read out options */
1407 while (options && options->name) {
1408 if (!strcmp(options->name, "size")) {
1409 total_size = options->value.n / BDRV_SECTOR_SIZE;
1410 }
1411 options++;
1412 }

--- 127 unchanged lines hidden ---
1405
1406 /* Read out options */
1407 while (options && options->name) {
1408 if (!strcmp(options->name, "size")) {
1409 total_size = options->value.n / BDRV_SECTOR_SIZE;
1410 }
1411 options++;
1412 }

--- 127 unchanged lines hidden ---