1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

sanlock: add missing test command in virt-sanlock-cleanup.in

* tools/virt-sanlock-cleanup.in: fix missing test command when judging
  second condition.

https://bugzilla.redhat.com/show_bug.cgi?id=738534

Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
Alex Jia 2011-09-15 14:13:28 +08:00 committed by Eric Blake
parent a73e92ba08
commit e99f01ecb6

View File

@ -29,7 +29,7 @@ cd "$LOCKDIR" || exit 1
for MD5 in *
do
if test $MD5 != '*' && $MD5 != $LOCKSPACE ; then
if test $MD5 != '*' && test $MD5 != $LOCKSPACE ; then
RESOURCE="$LOCKSPACE:$MD5:$LOCKDIR/$MD5:0"
notify -n "Cleanup: $RESOURCE "
sanlock client command -r $RESOURCE -c /bin/rm -f "$LOCKDIR/$MD5" 2>/dev/null