]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (monitor) use inotify for utab lock file
authorKarel Zak <kzak@redhat.com>
Wed, 17 Dec 2014 11:50:29 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 15:19:02 +0000 (16:19 +0100)
commit3b2c2ba688ead223db54bc3f027987403523c322
tree2b9e7a6428d23ed6b50ce9b3efe78aa8b3a6455e
parent3c5ed29a93f607666111104df9c0e970d132362c
libmount: (monitor) use inotify for utab lock file

It's better than monitor utab directly. The utab is updated by
rename(2) and it's really tricky for inotify, because it's necessary
to monitor all /run/mount directory and then it's necessary to verify
that the renamed file is really "utab".

The new concept is without possible false positives and it also
triggers the change when utab update is really done.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/monitor.c