For root on iSCSI we have to move idbm's LOCK_DIR to eg /etc/iscsi, as the /var directory might not be available. So make it configurable during compile-time.
Signed-off-by: Hannes Reinecke <h...@suse.de> --- usr/initiator.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/initiator.h b/usr/initiator.h index 93e9b3b..8497c70 100644 --- a/usr/initiator.h +++ b/usr/initiator.h @@ -39,9 +39,11 @@ #define INITIATOR_NAME_FILE ISCSI_CONFIG_ROOT"initiatorname.iscsi" #define PID_FILE "/var/run/iscsid.pid" +#ifndef LOCK_DIR #define LOCK_DIR "/var/lock/iscsi" -#define LOCK_FILE "/var/lock/iscsi/lock" -#define LOCK_WRITE_FILE "/var/lock/iscsi/lock.write" +#endif +#define LOCK_FILE LOCK_DIR"/lock" +#define LOCK_WRITE_FILE LOCK_DIR"/lock.write" typedef enum iscsi_conn_state_e { STATE_FREE, -- 1.7.3.4 -- 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@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.