]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/probe.c
libblkid: cache is incorrectly revalidated
authorKarel Zak <kzak@redhat.com>
Tue, 23 Nov 2010 18:49:58 +0000 (19:49 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Nov 2010 18:56:57 +0000 (19:56 +0100)
commite8fc977aba09ddbd89b25276fd777c3f0eef9299
tree6d397f0e4b8ea68f17952d4b9ae03b17db6aba14
parentcf59b09c1e7c520b96295058c10acea1dbeee671
libblkid: cache is incorrectly revalidated

for example:

# echo "password" | cryptsetup luksFormat /dev/loop7
# blkid /dev/loop7
/dev/loop7: UUID="09240a80-1cf1-456d-9a6e-a35b39dc1f2b" TYPE="crypto_LUKS"

# pvcreate -ff /dev/loop7
# blkid /dev/loop7
#

the second blkid call has to return info about LVM.

Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/probe.c