]> sourceware.org Git - lvm2.git/commit
Refresh device filters before full device rescan in lvmcache.
authorMilan Broz <mbroz@redhat.com>
Tue, 24 Nov 2009 16:10:25 +0000 (16:10 +0000)
committerMilan Broz <mbroz@redhat.com>
Tue, 24 Nov 2009 16:10:25 +0000 (16:10 +0000)
commitf6cabc78c02a82c96095e76f4221613defddb1b1
treee48d05b9c84aadaf306b90b1b1749fc9cdebe0d8
parentb8526452b5866a7f062e211c1c59843dd1247194
Refresh device filters before full device rescan in lvmcache.

The sysfs filter initialise hash of available devices using
scan of /sys/block. We need to refresh even this hash
when performing full scan otherwise the newly appeared
device could be rejected, because there is no entry
in sysfs filter.

This easily could happen when attaching new device
to cluster node. (Only force refresh of context
in clvmd -R works here now).

Unfortunately consequences of this are much worse,
missing device part on that node is replaced with missing segment
(even when no partial arg is selected) and this directly
lead to data corruption.

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

Simply fix it by refreshing device filters in lvmcache
before performing the full device scan.
WHATS_NEW
lib/cache/lvmcache.c
lib/commands/toolcontext.c
lib/commands/toolcontext.h
This page took 0.037657 seconds and 5 git commands to generate.