]> sourceware.org Git - lvm2.git/commit
Remove vg_validate call when parsing cached metadata.
authorMilan Broz <mbroz@redhat.com>
Wed, 31 Mar 2010 17:20:44 +0000 (17:20 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 31 Mar 2010 17:20:44 +0000 (17:20 +0000)
commit4e8859d851cc94bf013925b23060346a0fde9cb7
treeddc9fd48a50892b4743849e9c9ab17a252f4c130
parent562ae607d2d611a3574e4e7e9f43a7094960acc5
Remove vg_validate call when parsing cached metadata.

vg_validate call is an adept to optimisation, it is very
ineeficient and slow.

Anyway, we should call it only before writing data to disk.

The call in lvmcache was just temporary validation,
we realy do not need to revalidate cached metadata
every time.
(Actually, I added that there just to prove that cache works
properly and forgot to remove it.)

Patch removes it from lvmcache completely, this can hit only
internal bug in export function (and this bug must
be detected in any vg_write call anyway before).
WHATS_NEW
lib/cache/lvmcache.c
This page took 0.030986 seconds and 5 git commands to generate.