1 Star 0 Fork 14

ZJAY998/libiscsi

forked from src-openEuler/libiscsi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-test-tool-Compare-Write-skip-InvalidDataOutSize-unle.patch 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
markeryang 提交于 2021-07-30 17:52 . fix multiple define for gcc10
From 60a5856f00731be578a57bfbf68b2e9858680f07 Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@suse.de>
Date: Mon, 16 Sep 2019 14:33:50 +0200
Subject: [PATCH 01/12] test-tool/Compare&Write: skip InvalidDataOutSize unless
iSCSI
This test performs PDU manipulation so should only be run against iSCSI
devices.
Signed-off-by: David Disseldorp <ddiss@suse.de>
---
test-tool/test_compareandwrite_invalid_dataout_size.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test-tool/test_compareandwrite_invalid_dataout_size.c b/test-tool/test_compareandwrite_invalid_dataout_size.c
index 4abd501..eb6a6dd 100644
--- a/test-tool/test_compareandwrite_invalid_dataout_size.c
+++ b/test-tool/test_compareandwrite_invalid_dataout_size.c
@@ -53,6 +53,13 @@ test_compareandwrite_invalid_dataout_size(void)
CHECK_FOR_THIN_PROVISIONING;
CHECK_FOR_LBPPB_GT_1;
CHECK_FOR_SBC;
+ if (sd->iscsi_ctx == NULL) {
+ const char *err = "[SKIPPED] This test is "
+ "only supported for iSCSI backends";
+ logging(LOG_NORMAL, "%s", err);
+ CU_PASS(err);
+ return;
+ }
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zjay998/libiscsi.git
git@gitee.com:zjay998/libiscsi.git
zjay998
libiscsi
libiscsi
master

搜索帮助