]> git.proxmox.com Git - mirror_qemu.git/commit
filemon: ensure watch IDs are unique to QFileMonitor scope
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 13 Mar 2019 17:36:18 +0000 (17:36 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 2 Apr 2019 12:46:33 +0000 (13:46 +0100)
commitff3dc8fefe953fd3650279e064bf63b212c5699a
tree8d3161206551075e2f0d5f864158913a9e292f68
parentb26c3f9cbd784a5f7db68049fd9c49a0a2077734
filemon: ensure watch IDs are unique to QFileMonitor scope

The watch IDs are mistakenly only unique within the scope of the
directory being monitored. This is not useful for clients which are
monitoring multiple directories. They require watch IDs to be unique
globally within the QFileMonitor scope.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Bandan Das <bsd@redhat.com>
Reviewed-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/test-util-filemonitor.c
util/filemonitor-inotify.c