[stgt] tgtd startup problem

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Mon Mar 9 06:59:06 CET 2009


On Sat, 07 Mar 2009 12:07:04 +0100
Albert Pauw <albert.pauw at gmail.com> wrote:

> Hi Tomasz,
> 
> thanks for the hints. The netstat looks fine, no port 3260 is actually 
> in use.
> As for the strace, I am not an expert on that. Maybe you can find a clue?

You use the the commit 49e93cd2f02bbbbaa18ca3498ba4580338ec5045 ?

If so, does this patch work?

diff --git a/usr/mgmt.c b/usr/mgmt.c
index 47c8820..5332dc0 100644
--- a/usr/mgmt.c
+++ b/usr/mgmt.c
@@ -560,6 +560,7 @@ int ipc_init(void)
 		return -1;
 	}
 
+	unlink(TGT_IPC_NAMESPACE);
 	memset(&addr, 0, sizeof(addr));
 	addr.sun_family = AF_LOCAL;
 	strncpy(addr.sun_path, TGT_IPC_NAMESPACE, sizeof(addr.sun_path));
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list