diff options
author | Chris Leech <cleech@redhat.com> | 2015-02-03 16:28:15 -0800 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2015-03-02 00:41:57 -0600 |
commit | 63d086c9cb84b881e13ce8a5b4ddb80234948258 (patch) | |
tree | d21edfa0f47fea78c6179758af4beeedea6d5e36 /etc | |
parent | c02b558f58e6b34f2c3e298e7552ac829a554d11 (diff) | |
download | open-iscsi-63d086c9cb84b881e13ce8a5b4ddb80234948258.tar.gz |
iscsid safe session logout
Implement a safe logout option, which uses libmount from util-linux to
check for active mounts (and swaps) over devices, their partitions, and
any holders (like LVM and multipath device maps). When enabled iscsid
will refuse to logout of sessions actively being used for mounts,
returning a status of EBUSY to the ipc request.
I've made it a configuration option (iscsid.safe_logout) that defaults
to "No" to preserve the existing behavior as the default, while making
it available for users that prefer a safety check.
This does add a new dependency on libmount.
Signed-off-by: Chris Leech <cleech@redhat.com>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/iscsid.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/iscsid.conf b/etc/iscsid.conf index ef76dc0..6d9a5c0 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -22,6 +22,9 @@ # Default for upstream open-iscsi scripts (uncomment to activate). iscsid.startup = /sbin/iscsid +# Check for active mounts on devices reachable through a session +# and refuse to logout if there are any. Defaults to "No". +# iscsid.safe_logout = Yes ############################# # NIC/HBA and driver settings |