mcstop+release-smp-x86.sh: fix OS instance discovery bug

This commit is contained in:
Balazs Gerofi
2016-08-12 12:27:04 +09:00
parent a01ae91051
commit f4155cc9e8

View File

@ -20,10 +20,12 @@ cpus=""
if [ "`lsmod | grep ihk_smp_x86`" == "" ]; then exit; fi
# Destroy all LWK instances
if ls /dev/mcos* 1>/dev/null 2>&1; then
for i in /dev/mcos*; do
ind=`echo $i|cut -c10-`;
if ! ${SBINDIR}/ihkconfig 0 destroy $ind; then echo "error: destroying LWK instance $ind failed"; exit; fi
done
fi
# Query IHK-SMP resources and release them
if ! ${SBINDIR}/ihkconfig 0 query cpu > /dev/null; then echo "error: querying cpus"; exit; fi