[Pkg-iscsi-maintainers] [open-iscsi] 01/02: Don't prematurely exit when encountering targets with no block device

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Thu Jun 26 08:52:35 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 92ac387f5908d511ab307b6fb7e338807277c9c9
Author: Ritesh Raj Sarraf <rrs at debian.org>
Date:   Tue Apr 29 12:57:46 2014 +0530

    Don't prematurely exit when encountering targets with no block device
    
    Closes: #745708
    Thanks: Sammy Atmadja
---
 debian/umountiscsi.sh.init | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/debian/umountiscsi.sh.init b/debian/umountiscsi.sh.init
index 8f7161b..d5b0591 100644
--- a/debian/umountiscsi.sh.init
+++ b/debian/umountiscsi.sh.init
@@ -56,9 +56,8 @@ do_stop () {
 		for BLOCK_FILE in $SESSION_DIR/target*/*\:*/block/*; do
 			BLOCK_DEV=`echo "$BLOCK_FILE" | sed 's/.*block\///'`
 			if [ "${BLOCK_DEV}" = "*" ];then
-				log_warning_msg "No iSCSI block devices found"
-	    			log_end_msg 0
-	    			exit 0
+				log_warning_msg "iSCSI target without block devices found"
+				continue
 			fi
 			DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ { print \\$2; }" < /proc/mounts`"
 			for DEVICE in $DOS_PARTITIONS; do

-- 
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