]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: remove obsolete tags from cache
authorKarel Zak <kzak@redhat.com>
Wed, 14 Nov 2012 12:14:29 +0000 (13:14 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Nov 2012 10:30:02 +0000 (11:30 +0100)
commitbc899bea389ca3aa915bd985664fd8babbc00d6a
tree562ce0638921977193bc045d2a3d60c5f23506f7
parent12b0feeb2d3df6eca1655d54c4687b4f393870de
libblkid: remove obsolete tags from cache

The libblkid cache tags are not removed if a new version of the
tags is empty (e.g. label 'foo' -> '').

 # mkfs.ext4 -L test_label /dev/sda15
 # blkid /dev/sda15
 /dev/sda15: LABEL="test_label"

 # tune2fs -L '' /dev/sda15
 # blkid /dev/sda15
 /dev/sda15: LABEL="test_label"
                    ^^^^^^^^^^

Reported-by: Mike Fleetwood <mike.fleetwood@googlemail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/tag.c
libblkid/src/verify.c