add detection of scsi disks
This commit is contained in:
parent
4b53cb7f9e
commit
c390cd2c23
@ -52,7 +52,7 @@ abortFunction()
|
||||
exit 1
|
||||
}
|
||||
|
||||
VMDISKS=$(virsh domblklist $VM | egrep -o vd.)
|
||||
VMDISKS=$(virsh domblklist $VM | grep qcow2 | egrep -o [vs]d.)
|
||||
DISKSPEC=""
|
||||
for disk in $VMDISKS
|
||||
do
|
||||
@ -93,7 +93,7 @@ do
|
||||
virsh blockcommit $VM $disk --pivot --active >/dev/null
|
||||
done
|
||||
|
||||
VMDISKS=$(virsh domblklist $VM | egrep vd.)
|
||||
VMDISKS=$(virsh domblklist $VM | egrep [vs]d.)
|
||||
for disk in $VMDISKS
|
||||
do
|
||||
if [[ $disk == *"snapshot"* ]]
|
||||
|
Loading…
Reference in New Issue
Block a user