summaryrefslogtreecommitdiffstats
path: root/misc-utils/blkid.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 /misc-utils/blkid.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 'misc-utils/blkid.c')
-rw-r--r--misc-utils/blkid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
index 2976bca02..463fad3c0 100644
--- a/misc-utils/blkid.c
+++ b/misc-utils/blkid.c
@@ -67,7 +67,8 @@ static void usage(int error)
" [-o <format>] <dev> ...\n\n"
" %1$s -i [-s <tag>] [-o <format>] <dev> ...\n\n"
"Options:\n"
- " -c <file> cache file (default: /etc/blkid.tab, /dev/null = none)\n"
+ " -c <file> read from <file> instead of reading from the default\n"
+ " cache file (-c /dev/null means no cache)\n"
" -d don't encode non-printing characters\n"
" -h print this usage message and exit\n"
" -g garbage collect the blkid cache\n"