]> git.ipfire.org Git - thirdparty/libvirt.git/commit
sanlock: Don't spam logs with "target pid not found"
authorJiri Denemark <jdenemar@redhat.com>
Fri, 6 Mar 2015 14:58:55 +0000 (15:58 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 9 Mar 2015 12:36:40 +0000 (13:36 +0100)
commit54972be8430c709a338c0716ebc48b02be25dcb7
treed0ecd61e0789c38257973d2dd8cbba5785853635
parent6beb75d96dc596047aedaa9e79d81a042364626a
sanlock: Don't spam logs with "target pid not found"

Commit v1.2.4-52-gda879e5 fixed issues with domains started before
sanlock driver was enabled by checking whether a running domain is
registered with sanlock and if it's not, sanlock driver is basically
ignored for the domain.

However, it was checking this even for domain which has just been
started and no sanlock_* API was called for them yet. This results in

    cmd 9 target pid 2135544 not found

error messages to appear in sanlock.log whenever we start a new domain.

This patch avoids this useless check for freshly started domains.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/locking/domain_lock.c
src/locking/lock_driver.h
src/locking/lock_driver_lockd.c
src/locking/lock_driver_sanlock.c
src/locking/lock_manager.c