[Pkg-iscsi-maintainers] [open-iscsi] 02/04: Handle network swap devices (blocks)

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Wed Aug 20 13:43:54 UTC 2014

This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch master
in repository open-iscsi.

commit 517546cfedbed3c929dbd3594b0ac7843baae44f
Author: Ritesh Raj Sarraf <rrs at debian.org>
Date:   Wed Aug 20 18:47:47 2014 +0530

    Handle network swap devices (blocks)
    Closes: #756843
    And we do not need to worry about fsck here. If the block device really
    has a file system that needs a check, mount should sense it.
    If the user wants to define an fsck policy, she can anyways define it in
    /etc/fstab file
    Explicit fsck on each network block device is expensive. Imagine a host
    which has 500 LUNs mapped from a SAN Array, with 4 paths per LUN....
 debian/open-iscsi.init | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/open-iscsi.init b/debian/open-iscsi.init
index 182b1ee..8a19e40 100644
--- a/debian/open-iscsi.init
+++ b/debian/open-iscsi.init
@@ -131,6 +131,15 @@ start() {
 	log_end_msg $MOUNT_RESULT
+	# Also enable any new swap devices (network) that popped up.
+	log_daemon_msg "Enabling network swap devices"
+	if swapon -a -e >/dev/null 2>&1; then
+		break
+	fi
+	log_end_msg $SWAP_RESULT
 starttargets() {

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git

More information about the Pkg-iscsi-maintainers mailing list