On Tue, Apr 15, 2014 at 10:15:01AM +0800, Qu Wenruo wrote: > > 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? The blkid_verify() function is designed to make sure the information in the cache corresponds with reality. If it does not, it will update the cache to match with reality, so it will do what you want. Using blkid_verify() will involve accessing the disk involved, but that's still better than the alternative of scanning all of the disks in the system. Cheers, - Ted -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html