diff -u open-iscsi-2.0.865/debian/changelog open-iscsi-2.0.865/debian/changelog --- open-iscsi-2.0.865/debian/changelog +++ open-iscsi-2.0.865/debian/changelog @@ -1,3 +1,10 @@ +open-iscsi (2.0.865-1ubuntu3.4) hardy-proposed; urgency=low + + * When counting the number of expected iSCSI sessions, count all of + them, not just the ones labelled "default" (LP: #394398). + + -- Evan Broder Wed, 25 Nov 2009 12:12:12 -0500 + open-iscsi (2.0.865-1ubuntu3.3) hardy-proposed; urgency=low * Backport from karmic: diff -u open-iscsi-2.0.865/debian/open-iscsi.init open-iscsi-2.0.865/debian/open-iscsi.init --- open-iscsi-2.0.865/debian/open-iscsi.init +++ open-iscsi-2.0.865/debian/open-iscsi.init @@ -94,7 +94,7 @@ log_daemon_msg "Setting up iSCSI targets" # Only start automatic targets if there isn't the expected # number of running sessions - ISCSI_TARGET_NB=$(cat /etc/iscsi/nodes/*/*/default 2>/dev/null| grep -c automatic) + ISCSI_TARGET_NB=$(cat /etc/iscsi/nodes/*/*/* 2>/dev/null| grep -c automatic) ISCSI_SESSION_NB=$($ADM -m session 2>/dev/null | grep -c ^) if [ "${ISCSI_TARGET_NB}" -ne "${ISCSI_SESSION_NB}" ]; then $ADM -m node --loginall=automatic > /dev/null