[stgt] [PATCH] tgtd: protect socket for management IPC with lockf(3)

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Fri Nov 1 02:04:41 CET 2013


On Tue, 29 Oct 2013 11:21:15 +0900
Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp> wrote:

> If two or more tgtds are launched with same control port (a number
> specified with -C option), tgtadm cannot communicate with tgtds
> because the latest tgtd cominates the socket. This behavior is
> confusing.
> 
> This patch lets tgtd lock the socket with lockf(3). With this change,
> tgtd will exits when the socket of its control port is already locked.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  usr/mgmt.c |   36 +++++++++++++++++++++++++++++-------
>  usr/tgtd.c |    6 +++---
>  2 files changed, 32 insertions(+), 10 deletions(-)

Make sense. Applied.
--
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