提交 e97cd364 编写于 作者: M Michal Privoznik

viriscsitest: Move testSessionInfo struct

This struct has nothing to do with testIscsiadmCb() rather than
testISCSIGetSession(). Move it closer to the latter.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 b5871d0c
......@@ -60,12 +60,6 @@ const char *iscsiadmSendtargetsOutput =
"10.20.30.40:3260,1 iqn.2008-04.example:example1:iscsi.bar\n"
"10.20.30.40:3260,1 iqn.2009-04.example:example1:iscsi.seven\n";
struct testSessionInfo {
const char *device_path;
int output_version;
const char *expected_session;
};
static void testIscsiadmCb(const char *const*args,
const char *const*env ATTRIBUTE_UNUSED,
const char *input ATTRIBUTE_UNUSED,
......@@ -118,6 +112,12 @@ static void testIscsiadmCb(const char *const*args,
}
}
struct testSessionInfo {
const char *device_path;
int output_version;
const char *expected_session;
};
static int
testISCSIGetSession(const void *data)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册