From 304159c99ab59c61543cac747e47a1ff59d2dbb6 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Thu, 10 Oct 2013 09:07:42 +0200 Subject: [PATCH] cleanup: WHATS_NEW + compiler warning about discarding const --- WHATS_NEW | 3 +++ daemons/lvmetad/lvmetad-core.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index a87a906e8..d0ed2ceda 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,8 @@ Version 2.02.104 =================================== + Fix possible race during daemon worker thread creation (lvmetad). + Fix possible deadlock while clearing lvmetad cache for full rescan. + Fix possible race while creating/destroying memory pools. Recognise NVM Express devices in filter. Fix failing metadata repair when lvmetad is used. Fix incorrect memory handling when reading messages from lvmetad. diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index 5a841e00a..285c8ccaa 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -796,7 +796,7 @@ static response pv_gone(lvmetad_state *s, request r) pvmeta = dm_hash_lookup(s->pvid_to_pvmeta, pvid); pvid_old = dm_hash_lookup_binary(s->device_to_pvid, &device, sizeof(device)); - const char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid); + char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid); if (vgid && !(vgid = dm_strdup(vgid))) { unlock_pvid_to_pvmeta(s);