Whamcloud - gitweb
blkid: Flush cached filesystem information on any error other than EPERM
authorTheodore Ts'o <tytso@mit.edu>
Sun, 10 Feb 2008 03:30:20 +0000 (22:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Feb 2008 03:30:20 +0000 (22:30 -0500)
commit838f133c72a583eae67414368e46ee0303e0a51f
tree5d6be70d65fd34127a8ddee026fb21b014a9bcac
parent0ddfd9a529d2d33f9c5b59fd7409b716e50d45b2
blkid: Flush cached filesystem information on any error other than EPERM

USB devices can return ENOMEDIUM, and when the filesystem cached
information wasn't flushed, it resulted in the wrong location of a
filesystem to be returned to the caller.  The only justification for
using cached information when the open fails is in the case of a
permission denied error.

Addresses-Debian-Bug: #463787
lib/blkid/probe.c