[Pkg-iscsi-maintainers] [open-iscsi] 08/18: Try harder to determine an iSCSI block device
Ritesh Raj Sarraf
rrs at alioth.debian.org
Tue Nov 5 16:22:12 UTC 2013
This is an automated email from the git hooks/post-receive script.
rrs pushed a commit to branch master
in repository open-iscsi.
commit e5e679de7a6513a15f4b9de5b6985eda583226fd
Author: Ritesh Raj Sarraf <rrs at debian.org>
Date: Tue Nov 5 21:22:03 2013 +0530
Try harder to determine an iSCSI block device
Closes: #691732
Thanks: Dennis Leeuw, Philip Freeman
---
debian/umountiscsi.sh.init | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/debian/umountiscsi.sh.init b/debian/umountiscsi.sh.init
index 88393d0..8f7161b 100644
--- a/debian/umountiscsi.sh.init
+++ b/debian/umountiscsi.sh.init
@@ -55,6 +55,11 @@ do_stop () {
fi
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
+ fi
DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ { print \\$2; }" < /proc/mounts`"
for DEVICE in $DOS_PARTITIONS; do
#log_progress_msg $DEVICE
--
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