iscsi.c (9e6b7f7eb89580cd8dfc1dd4983db9c158517d0a) | iscsi.c (5a5e7f8cd86b7ced0732b1b6e28c82baa65b09c9) |
---|---|
1/* 2 * QEMU Block driver for iSCSI images 3 * 4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com> 5 * Copyright (c) 2012-2017 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 --- 2385 unchanged lines hidden (view full) --- 2394 2395 trace_iscsi_xcopy(src_lun, src_offset, dst_lun, dst_offset, bytes, r); 2396 g_free(iscsi_task.task); 2397 qemu_mutex_unlock(&dst_lun->mutex); 2398 g_free(iscsi_task.err_str); 2399 return r; 2400} 2401 | 1/* 2 * QEMU Block driver for iSCSI images 3 * 4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com> 5 * Copyright (c) 2012-2017 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 --- 2385 unchanged lines hidden (view full) --- 2394 2395 trace_iscsi_xcopy(src_lun, src_offset, dst_lun, dst_offset, bytes, r); 2396 g_free(iscsi_task.task); 2397 qemu_mutex_unlock(&dst_lun->mutex); 2398 g_free(iscsi_task.err_str); 2399 return r; 2400} 2401 |
2402static QemuOptsList iscsi_create_opts = { 2403 .name = "iscsi-create-opts", 2404 .head = QTAILQ_HEAD_INITIALIZER(iscsi_create_opts.head), 2405 .desc = { 2406 { 2407 .name = BLOCK_OPT_SIZE, 2408 .type = QEMU_OPT_SIZE, 2409 .help = "Virtual disk size" 2410 }, 2411 { /* end of list */ } 2412 } 2413}; | |
2414 2415static const char *const iscsi_strong_runtime_opts[] = { 2416 "transport", 2417 "portal", 2418 "target", 2419 "user", 2420 "password", 2421 "password-secret", --- 7 unchanged lines hidden (view full) --- 2429static BlockDriver bdrv_iscsi = { 2430 .format_name = "iscsi", 2431 .protocol_name = "iscsi", 2432 2433 .instance_size = sizeof(IscsiLun), 2434 .bdrv_parse_filename = iscsi_parse_filename, 2435 .bdrv_file_open = iscsi_open, 2436 .bdrv_close = iscsi_close, | 2402 2403static const char *const iscsi_strong_runtime_opts[] = { 2404 "transport", 2405 "portal", 2406 "target", 2407 "user", 2408 "password", 2409 "password-secret", --- 7 unchanged lines hidden (view full) --- 2417static BlockDriver bdrv_iscsi = { 2418 .format_name = "iscsi", 2419 .protocol_name = "iscsi", 2420 2421 .instance_size = sizeof(IscsiLun), 2422 .bdrv_parse_filename = iscsi_parse_filename, 2423 .bdrv_file_open = iscsi_open, 2424 .bdrv_close = iscsi_close, |
2425 .bdrv_co_create_opts = bdrv_co_create_opts_simple, 2426 .create_opts = &bdrv_create_opts_simple, |
|
2437 .bdrv_reopen_prepare = iscsi_reopen_prepare, 2438 .bdrv_reopen_commit = iscsi_reopen_commit, 2439 .bdrv_co_invalidate_cache = iscsi_co_invalidate_cache, 2440 2441 .bdrv_getlength = iscsi_getlength, 2442 .bdrv_get_info = iscsi_get_info, 2443 .bdrv_co_truncate = iscsi_co_truncate, 2444 .bdrv_refresh_limits = iscsi_refresh_limits, --- 21 unchanged lines hidden (view full) --- 2466static BlockDriver bdrv_iser = { 2467 .format_name = "iser", 2468 .protocol_name = "iser", 2469 2470 .instance_size = sizeof(IscsiLun), 2471 .bdrv_parse_filename = iscsi_parse_filename, 2472 .bdrv_file_open = iscsi_open, 2473 .bdrv_close = iscsi_close, | 2427 .bdrv_reopen_prepare = iscsi_reopen_prepare, 2428 .bdrv_reopen_commit = iscsi_reopen_commit, 2429 .bdrv_co_invalidate_cache = iscsi_co_invalidate_cache, 2430 2431 .bdrv_getlength = iscsi_getlength, 2432 .bdrv_get_info = iscsi_get_info, 2433 .bdrv_co_truncate = iscsi_co_truncate, 2434 .bdrv_refresh_limits = iscsi_refresh_limits, --- 21 unchanged lines hidden (view full) --- 2456static BlockDriver bdrv_iser = { 2457 .format_name = "iser", 2458 .protocol_name = "iser", 2459 2460 .instance_size = sizeof(IscsiLun), 2461 .bdrv_parse_filename = iscsi_parse_filename, 2462 .bdrv_file_open = iscsi_open, 2463 .bdrv_close = iscsi_close, |
2464 .bdrv_co_create_opts = bdrv_co_create_opts_simple, 2465 .create_opts = &bdrv_create_opts_simple, |
|
2474 .bdrv_reopen_prepare = iscsi_reopen_prepare, 2475 .bdrv_reopen_commit = iscsi_reopen_commit, 2476 .bdrv_co_invalidate_cache = iscsi_co_invalidate_cache, 2477 2478 .bdrv_getlength = iscsi_getlength, 2479 .bdrv_get_info = iscsi_get_info, 2480 .bdrv_co_truncate = iscsi_co_truncate, 2481 .bdrv_refresh_limits = iscsi_refresh_limits, --- 30 unchanged lines hidden --- | 2466 .bdrv_reopen_prepare = iscsi_reopen_prepare, 2467 .bdrv_reopen_commit = iscsi_reopen_commit, 2468 .bdrv_co_invalidate_cache = iscsi_co_invalidate_cache, 2469 2470 .bdrv_getlength = iscsi_getlength, 2471 .bdrv_get_info = iscsi_get_info, 2472 .bdrv_co_truncate = iscsi_co_truncate, 2473 .bdrv_refresh_limits = iscsi_refresh_limits, --- 30 unchanged lines hidden --- |