For abstract sockets, the addrlen parameter should be the actual
length of socket's name. Otherwise socket gets padded with some
number of NULs.
---
usr/iscsid_req.c | 3 ++-
usr/mgmt_ipc.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/usr/iscsid_req.c
---
usr/mgmt_ipc.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/usr/mgmt_ipc.c b/usr/mgmt_ipc.c
index 36f5d02..90dddbe 100644
--- a/usr/mgmt_ipc.c
+++ b/usr/mgmt_ipc.c
@@ -39,13 +39,35 @@
#define PEERUSER_MAX 64
#define EXTMSG_MAX (64 * 1024)
+#define
Ok, so what's about this version, with separate function?
From 4f4cc6497c11730098f8e89cc146359d1ae16660 Mon Sep 17 00:00:00 2001
From: Tomasz Torcz to...@pipebreaker.pl
Date: Mon, 26 Nov 2012 11:54:25 +0100
Subject: [PATCH 2/3] iscsid: implement systemd-compatible socket activation
---
usr
Hello,
This is v2 of systemd-activation patches for iscsid.
v1-v2 changes:
- separate address length calculation
- separate systemd functionality to own function
--
You received this message because you are subscribed to the Google Groups
open-iscsi group.
To post to this group, send
For abstract sockets, the addrlen parameter should be the actual
length of socket's name. Otherwise socket gets padded with some
number of NULs.
---
usr/iscsid_req.c | 10 ++
usr/mgmt_ipc.c | 9 +
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/usr/iscsid_req.c
---
usr/mgmt_ipc.c | 29 +
usr/mgmt_ipc.h | 1 +
2 files changed, 30 insertions(+)
diff --git a/usr/mgmt_ipc.c b/usr/mgmt_ipc.c
index a1dafc9..f34f688 100644
--- a/usr/mgmt_ipc.c
+++ b/usr/mgmt_ipc.c
@@ -39,6 +39,7 @@
#define PEERUSER_MAX 64
#define EXTMSG_MAX
Those two units, based on the work by Jóhann B. Guðmundsson, exploit
on-demand socket activation in iscsid.
---
etc/systemd/iscsid.service | 13 +
etc/systemd/iscsid.socket | 9 +
2 files changed, 22 insertions(+)
create mode 100644 etc/systemd/iscsid.service
create mode
of it.
--
Tomasz Torcz Morality must always be based on practicality.
xmpp: zdzich...@chrome.pl-- Baron Vladimir Harkonnen
--
You received this message because you are subscribed to the Google Groups
open-iscsi group.
To post to this group, send email to open-iscsi
for finishing it, Jan!
--
Tomasz Torcz ,,If you try to upissue this patchset I shall be
seeking
xmpp: zdzich...@chrome.pl an IP-routable hand grenade.'' -- Andrew Morton
(LKML)
--
You received this message because you are subscribed to the Google Groups
open-iscsi group