public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* libblkid: Idea to force given cached entry to be invalidated?
@ 2014-04-15  2:15 Qu Wenruo
  2014-04-15  4:27 ` Theodore Ts'o
  2014-04-15 11:21 ` Karel Zak
  0 siblings, 2 replies; 10+ messages in thread
From: Qu Wenruo @ 2014-04-15  2:15 UTC (permalink / raw)
  To: util-linux

Hi,

When using the blkid_get_cache(), things will be cached to reduce the 
probe frequency.

But filesystem which supports device management like btrfs can remove 
device and
if fast enough, libblkid will not invalidate the old cache and cause to 
get the wrong filesystem type.

The bug is describe in the following btrfs patch:
https://patchwork.kernel.org/patch/3960191/

Though the above patch try to avoid the whole cache, it's not good 
enough since it break the pricible not
to probe the devices too frequently.

After some searching, it seems that libblkid does not provide such API, 
or am I missing something?

So is there any idea about forcing given cached entry invalidated?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-18 11:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15  2:15 libblkid: Idea to force given cached entry to be invalidated? Qu Wenruo
2014-04-15  4:27 ` Theodore Ts'o
2014-04-15  4:52   ` Qu Wenruo
2014-04-15 11:21 ` Karel Zak
2014-04-16  0:53   ` Qu Wenruo
2014-04-16  9:03     ` Karel Zak
2014-04-17  1:17       ` Qu Wenruo
2014-04-17  8:21         ` Karel Zak
2014-04-17  8:29           ` Qu Wenruo
2014-04-18 11:02             ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox