summaryrefslogtreecommitdiff
path: root/libblkid/src/cache.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-09libblkid: export blkid_init_debug()Karel Zak1-23/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09libblkid: support LIBBLKID_DEBUG= onlyKarel Zak1-3/+0
... the BLKID_DEBUG= is not more supported. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-08libblkid: clean up DBG()Karel Zak1-33/+10
- use stderr only - use BLKID_ prefix for debug masks - don't use \n in in messages and don't use printf(), but use generic blkid_debug(). Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-04libblkid: cleanup arguments checksKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-30libblkid: remove blkid_{strndup,strdup}Karel Zak1-4/+4
Don't try to be smart. Let's use standard libc functions. (Note that we have fallback for strndup() in include/strutils.h) Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-08libblkid: clarify operation order [cppcheck]Sami Kerola1-1/+1
[libblkid/src/cache.c:265]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-01-25blkid: move cache to /run on new systemsKarel Zak1-3/+13
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>
2011-12-02build-sys: check HAVE_ definitions with #ifdef [smatch scan]Sami Kerola1-1/+1
Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-12libblkid: remove unnecessary position check from list_for_each_safe loopsKarel Zak1-2/+0
The position pointer is dereferenced before the check in the for() in the list_for_each_safe macro. Note that struct list_head should not contain NULL pointers. See INIT_LIST_HEAD() macro. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak1-0/+264
Signed-off-by: Karel Zak <kzak@redhat.com>