iscsi.c (13c91cb7e28b47f5c4227f7e88a1378570117704) iscsi.c (4f6fd3491cf0f768b135ed2e242bd1d1d2a2efec)
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

1281
1282 ret = 0;
1283out:
1284 if (iscsilun->iscsi != NULL) {
1285 iscsi_destroy_context(iscsilun->iscsi);
1286 }
1287 g_free(bs->opaque);
1288 bs->opaque = NULL;
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

1281
1282 ret = 0;
1283out:
1284 if (iscsilun->iscsi != NULL) {
1285 iscsi_destroy_context(iscsilun->iscsi);
1286 }
1287 g_free(bs->opaque);
1288 bs->opaque = NULL;
1289 bdrv_delete(bs);
1289 bdrv_unref(bs);
1290 return ret;
1291}
1292
1293static QEMUOptionParameter iscsi_create_options[] = {
1294 {
1295 .name = BLOCK_OPT_SIZE,
1296 .type = OPT_SIZE,
1297 .help = "Virtual disk size"

--- 63 unchanged lines hidden ---
1290 return ret;
1291}
1292
1293static QEMUOptionParameter iscsi_create_options[] = {
1294 {
1295 .name = BLOCK_OPT_SIZE,
1296 .type = OPT_SIZE,
1297 .help = "Virtual disk size"

--- 63 unchanged lines hidden ---