From 2f44cc3ac1ed7ba395269fb2c615e71bea791b39 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 18 Feb 2016 01:49:09 +0000 Subject: [PATCH] scst: add OFFLINE ALUA state to the list of supported states Reported-by: Consus git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6806 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_tg.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scst/src/scst_tg.c b/scst/src/scst_tg.c index fae553190..b610fa6f9 100644 --- a/scst/src/scst_tg.c +++ b/scst/src/scst_tg.c @@ -1567,11 +1567,12 @@ int scst_tg_get_group_info(void **buf, uint32_t *length, list_for_each_entry(tg, &dg->tg_list, entry) { /* Target port group descriptor header. */ *p++ = (tg->preferred ? SCST_TG_PREFERRED : 0) | tg->state; - *p++ = SCST_TG_SUP_OPTIMIZED - | SCST_TG_SUP_NONOPTIMIZED - | SCST_TG_SUP_STANDBY - | SCST_TG_SUP_UNAVAILABLE - | SCST_TG_SUP_TRANSITION; + *p++ = SCST_TG_SUP_OPTIMIZED | + SCST_TG_SUP_NONOPTIMIZED | + SCST_TG_SUP_STANDBY | + SCST_TG_SUP_UNAVAILABLE | + SCST_TG_SUP_OFFLINE | + SCST_TG_SUP_TRANSITION; put_unaligned_be16(tg->group_id, p); p += 2; p++; /* reserved */