summaryrefslogtreecommitdiffstats
path: root/libblkid/src/save.c
Commit message (Collapse)AuthorAgeFilesLines
* libblkid: use new debug functionsKarel Zak2014-03-211-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check writing to a file was successfulSami Kerola2013-04-261-1/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: clean up DBG()Karel Zak2013-04-081-19/+11Star
| | | | | | | | | - 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>
* libblkid: use O_CLOEXECKarel Zak2013-04-031-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check mkdir(/run/blkid) return code [coverity scan]Karel Zak2012-12-121-5/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove blkid_{strndup,strdup}Karel Zak2012-11-301-1/+1
| | | | | | | 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>
* libblkid: check fchmod() return value [coverity scan]Karel Zak2012-09-071-3/+6
|
* libblkid: check for NULL in blkid_flush_cache() [coverity scan]Karel Zak2012-01-311-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check rename() return value [coverity scan]Karel Zak2012-01-311-3/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: move cache to /run on new systemsKarel Zak2012-01-251-3/+18
| | | | | | | | | | | | | | | | | | | | | | 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>
* build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak2011-06-091-0/+196
Signed-off-by: Karel Zak <kzak@redhat.com>