[Stgt-devel] support to close a connection by force and to shut down tgtd

FUJITA Tomonori fujita.tomonori
Wed Jul 30 00:42:54 CEST 2008


On Tue, 29 Jul 2008 18:20:25 +0300
Doron Shoham <dorons at Voltaire.COM> wrote:

> Tomo - please note that the I_T nexus id is in hex but the tgtadm
> accepts only decimal values.  Please change the I_T nexus id to
> decimal.

Ah, thanks a lot! I didn't notice this at all.

I've applied the following patch.

=
From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Subject: [PATCH] use decimal notation for the id of I_T nexus in the show option

Now we use hexadecimal notation but it's confusing since we use
decimal notation for other things in the show option.

Reported-by: Doron Shoham <dorons at Voltaire.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/target.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index 7abaa54..0ae1b3e 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1549,7 +1549,7 @@ int tgt_target_show_all(char *buf, int rest)
 		shprintf(total, buf, rest, _TAB1 "I_T nexus information:\n");
 
 		list_for_each_entry(nexus, &target->it_nexus_list, nexus_siblings) {
-			shprintf(total, buf, rest, _TAB2 "I_T nexus: %" PRIx64 "\n",
+			shprintf(total, buf, rest, _TAB2 "I_T nexus: %" PRIu64 "\n",
 				 nexus->itn_id);
 			if (nexus->info)
 				shprintf(total, buf, rest, "%s", nexus->info);
-- 
1.5.4.2




More information about the stgt mailing list