summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-25 12:56:39 +0100
committerKarel Zak2012-01-25 13:20:37 +0100
commitb82590ad46acf9fe8d332b53875e24c3c31e2482 (patch)
tree6e2f7e53424393b1925a896a309d2913ae48c136 /libblkid/src/read.c
parentblkid: remove -w option from man page and usage() output (diff)
downloadkernel-qcow2-util-linux-b82590ad46acf9fe8d332b53875e24c3c31e2482.tar.gz
kernel-qcow2-util-linux-b82590ad46acf9fe8d332b53875e24c3c31e2482.tar.xz
kernel-qcow2-util-linux-b82590ad46acf9fe8d332b53875e24c3c31e2482.zip
blkid: move cache to /run on new systems
Why? * read-only root * /etc is pretty bad place for caches * all is usually cached by udev in /dev/disk/by-* and libblkid is able to use these symlinks * boot persistent cache is attractive for very small subset of Linux machines (and they already need extra udev tunning otherwise udev will probe all block devices during boot) * the default is possible to override in /etc/blkid.conf The systems without /run directory will not be affected by this change. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c
index b9fda3aae..97fd4b4a2 100644
--- a/libblkid/src/read.c
+++ b/libblkid/src/read.c
@@ -489,7 +489,7 @@ int main(int argc, char**argv)
}
if ((ret = blkid_get_cache(&cache, argv[1])) < 0)
fprintf(stderr, "error %d reading cache file %s\n", ret,
- argv[1] ? argv[1] : BLKID_CACHE_FILE);
+ argv[1] ? argv[1] : blkid_get_cache_filename(NULL));
blkid_put_cache(cache);