]> sourceware.org Git - lvm2.git/commit
Do not set precommitted flag in cache when precommitted metadata does not exist.
authorMilan Broz <mbroz@redhat.com>
Tue, 5 Jan 2010 16:01:22 +0000 (16:01 +0000)
committerMilan Broz <mbroz@redhat.com>
Tue, 5 Jan 2010 16:01:22 +0000 (16:01 +0000)
commit4b1687fb7462482f9336b38918fd94dc75f0f7b0
tree821787b690bf2b459b29b35a7ce1d5ac662291ae
parent60494fe74bf144588079554549338d4493a84909
Do not set precommitted flag in cache when precommitted metadata does not exist.

The use_precommitted flag indicates, that we want to use precommitted metadata
(used in suspend call to preload table with precommitted data).

But if there are no such data, committed metadata are read but the cache
still contains that precommitted flag.

(The problem is that later possible drop_metadata call will not invalidate
device in cache.)

The wrong precommitted state is stored in on remote nodes during normal
suspend/resume cycle _without_ vg_write/commit.

Use the PRECOMMITTED status flag here instead (which is always set if using
precommited metadata here).
WHATS_NEW
lib/metadata/metadata.c
This page took 0.035738 seconds and 5 git commands to generate.