Package: open-iscsi
Version: 2.0.873-3
Severity: important
Tags: patch

Dear Maintainer,

The umountiscsi.sh helper script does not properly check while traverse sysfs 
filesystem for mounted 
iSCSI devices. This cause a problem unmounting "/" or other filesystems when 
'restart', 'stop' option 
used with open-iscsi init script.

I suggest patch (below) to repair this.



-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages open-iscsi depends on:
ii  libc6  2.13-38+deb7u4
ii  udev   175-7.2

open-iscsi recommends no packages.

open-iscsi suggests no packages.

-- Configuration Files:
/etc/init.d/umountiscsi.sh changed [not included]
/etc/iscsi/initiatorname.iscsi changed [not included]

-- no debconf information
--- umountiscsi.sh	2012-06-28 00:35:52.000000000 +0700
+++ umountiscsi-20141014.sh	2014-10-14 01:12:35.459559179 +0700
@@ -54,6 +54,9 @@
 			continue
 		fi
 		for BLOCK_FILE in $SESSION_DIR/target*/*\:*/block/*; do
+			if  ! [ -d $BLOCK_FILE ]; then 
+				continue
+			fi
 			BLOCK_DEV=`echo "$BLOCK_FILE" | sed 's/.*block\///'`
 			DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ { print \\$2; }" < /proc/mounts`"
 			for DEVICE in $DOS_PARTITIONS; do

Reply via email to