]> sourceware.org Git - lvm2.git/commit
Compare also file size to detect changed config file
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 21 Jul 2011 13:23:48 +0000 (13:23 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 21 Jul 2011 13:23:48 +0000 (13:23 +0000)
commita2146d6548ff1bf02cf6adc9856e8ed7da1da0c9
tree475f317ce8e582c34f08084bbcf0768035ff8fa4
parent3082fa5d4c676cc21e06b5e51a788ba3287ab7d0
Compare also file size to detect changed config file

Clvmd detects modifed config file before it takes lv_lock.
If the config file is changed rapidly - the change was ignored within
a seocnd ranged.  This patch adds also compare of file size.
So change like some flag for 0 to 1 would pass unnoticed - but
it's quick fix for failing test suite.

FIXME: Implement inotify solution.
WHATS_NEW
lib/config/config.c
This page took 0.035007 seconds and 5 git commands to generate.