summaryrefslogtreecommitdiffstats
path: root/libblkid
Commit message (Collapse)AuthorAgeFilesLines
...
* use GCC format __attribute__ on sprinfnick black2012-07-071-1/+3
|
* build-sys: enable libmount and libblkid docsKarel Zak2012-06-262-10/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-262-5/+1Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-10/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert libblkid/ to moduleKarel Zak2012-06-2610-288/+262Star
| | | | | | | - create module - remove unused libblkid/src/tst_types.c test Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: update dm-verity scanMilan Broz2012-06-151-14/+19
| | | | | | New superblock now contains UUID. Old version is not going to be used. Signed-off-by: Milan Broz <mbroz@redhat.com>
* libblkid: trust in udev symlinks, don't verifyKarel Zak2012-06-122-1/+8
| | | | | | | | | | | | | The libblkid always verify that /dev/disk/by-* symlinks match with on-device LABELs/UUIDs. It means that all requests (e.g. mount -L | -U) generates extra superblocks scans on the device. Currently, many users and tools (GNOME, systemd, ...etc) use the symlink directly and udev maintains the symlinks by inotify (+watch rule). It seems better for system performance to disable the extra paranoid mode and trust in udev. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add dm-verity hash device detectionMilan Broz2012-06-053-0/+43
| | | | | | | | | | | dm-verity can use separate device for hash verification, in this case there is a superblock in the first sector. See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/device-mapper/verity.txt for more info. Signed-off-by: Milan Broz <mbroz@redhat.com>
* include: rename writeall.h to all-io.hPetr Uzel2012-05-151-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libblkid: support UFS UUIDVladimir 'φ-coder/phcoder' Serbinenko2012-05-041-0/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: accept small blocks for NTFS and Reiserfs in blkidVladimir 'φ-coder/phcoder' Serbinenko2012-05-042-4/+4
| | | | | | | | | libblkid is restrictive as to what it accepts as valid reiserfs or valid NTFS. One can mkfs an NTFS with 256B sectors and it's supported by ntfs-3g Reiserfs can have 512B blocks and it works both with mkfs.ntfs and Linux. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: befs: declare functions staticPetr Uzel2012-04-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Since commit 0b0c231f64d02e682 (swapon: move generic code to swapon-common.c), if util-linux is configured with --enable-static --disable-shared --enable-libmount-mount options, the build fails with the following error: ... libtool: link: gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o switch_root switch_root.o /home/petr/upstream/util-linux/libblkid/src/.libs/libblkid.a(befs.o): In function `get_uuid': /home/petr/upstream/util-linux/libblkid/src/superblocks/befs.c:333: multiple definition of `get_uuid' swapon-swapon-common.o:/home/petr/upstream/util-linux/sys-utils/swapon-common.c:99: first defined here collect2: ld returned 1 exit status /bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o flock flock.o strutils.o libtool: link: gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o pivot_root pivot_root.o make[2]: *** [swapon] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/petr/upstream/util-linux/libblkid/src/.libs/libblkid.a(befs.o): In function `get_uuid': /home/petr/upstream/util-linux/libblkid/src/superblocks/befs.c:333: multiple definition of `get_uuid' swapoff-swapon-common.o:/home/petr/upstream/util-linux/sys-utils/swapon-common.c:99: first defined here Fix by declaring befs funcitons static. Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* Fix typos found by misspellingsBernhard Voelker2012-04-236-9/+9
| | | | | | | | | | | | | | | The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * isosize: Fix typo in usage string. * configure.ac: Fix typo in help string of --enable-most-builds option. * fdisk: Fix typo in man page. * libblkid, blkid, mount: Likewise. * Fix various typos in docs and in source code comments. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* libblkid: add support for PARTUUID= and PARTLABEL=Karel Zak2012-04-192-1/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sysfs: move blkid_devno_to_wholedisk to sysfs_devno_to_wholediskMichal Luscon2012-03-271-129/+1Star
| | | | Signed-off-by: Michal Luscon <mluscon@redhat.com>
* libblkid: generate pseudo-UUID for ISO9660 image fileAndreas Vogel2012-03-211-1/+63
| | | | | | | | | The UUID is generated from the modification date in the ISO volume descriptor. As GRUB 2 is using this definition for the pseudo UUID for ISO9660 files libblkid would be perfectly compatible with GRUB 2. Signed-off-by: Andreas Vogel <Andreas.Vogel@anvo-it.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix sysfs context usageKarel Zak2012-03-063-6/+7
| | | | | Reported-by: Elan Ruusamäe <glen@delfi.ee> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: properly reset chain in probe_do_wipe()Karel Zak2012-03-011-5/+35
| | | | | | | | | | | | | | | | | The command wipefs is not able to remove all signatures from the device if the first detected signature is linux raid. The another superblock signatures are ignored. For example: # pvcreate /dev/sdb1 # mdadm --create md8 --metadata=0.90 --chunk=64 --level=0 \ --raid-devices=2 /dev/sdb1 /dev/sdb2 # wipefs -a /dev/sdb1 will delete the linux raid signature only. Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: enhance readability of the autotools filesSami Kerola2012-02-286-99/+138
| | | | | | | | Several horizontal lists are turned to vertical, and sorted to alphabetical order. Additionally spaces are converted to tabs where ever possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: corrections to FSF license files, and postal addressSami Kerola2012-02-242-2/+2
| | | | | | | | | | | | | | The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: add BLKID_PARTS_MAGIC to blkid_do_wipe() docsKarel Zak2012-02-221-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update copyright yearsKarel Zak2012-02-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: update docsKarel Zak2012-02-221-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: verify arroy bound before reference [cppcheck]Sami Kerola2012-02-081-1/+1
| | | | | | [libblkid/src/read.c:428]: (style) Array index end is used before limits check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: allow return value to indicate error [cppcheck]Sami Kerola2012-02-081-1/+1
| | | | | | [libblkid/src/probe.c:1207]: (style) Checking if unsigned variable 'len' is less than zero. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: clarify operation order [cppcheck]Sami Kerola2012-02-081-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>
* libblkid: improve reiserfs and btrfs min. size limitsKarel Zak2012-02-082-3/+3
| | | | | Reported-by: Rogier Goossens <goossens.rogier@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove >> 9 from GPT codeKarel Zak2012-02-061-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix suspicious implicit sign extension [coverity scan]Karel Zak2012-01-311-1/+1
| | | | | | ... thanks to "value preserving rules". Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: more robust idx usage [coverity scan]Karel Zak2012-01-311-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: make fd usage in md code more robustKarel Zak2012-01-311-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: comparing an array to null is not useful [coverity scan]Karel Zak2012-01-313-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* 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: fix blkid_do_fullprobe() [coverity scan]Karel Zak2012-01-311-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check blkid_probe_set_magic() return in ultrix code [coverity scan]Karel Zak2012-01-311-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check blkid_probe_set_magic() return in GPT code [coverity scan]Karel Zak2012-01-311-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check return values in safe_probe code [coverity scan]Karel Zak2012-01-311-4/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check blkid_probe_set_magic() return value [coverity scan]Karel Zak2012-01-311-1/+1
| | | | 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>
* libblkid: fix use-after-free [coverity scan]Karel Zak2012-01-301-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix limit for OCFS checkKarel Zak2012-01-301-2/+2
| | | | | | | | | | | | | | Rogier Goossens wrote: While testing KDE partitionmanager, I discovered that blkid did not detect the test OCFS2 filesystem I created. After some investigation, it appeared that it will assume the filesystem cannot be OCFS2 if smaller than 108M. However, mkfs.ocfs2 from ocfs2-tools (1.6.3) will happily create filesystems that are much smaller, only failing below approx. 15000 1k blocks, and below approx. 6000 4k blocks. Reported-by: Rogier Goossens <goossens.rogier@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: move cache to /run on new systemsKarel Zak2012-01-255-40/+47
| | | | | | | | | | | | | | | | | | | | | | 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>
* libblkid; fix memory leak in blkid_probe_get_wholedisk_probe()Karel Zak2011-12-211-0/+3
| | | | | Reported-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: minor docs changesFrancesco Cosoleto2011-12-162-9/+9
| | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* build-sys: check HAVE_ definitions with #ifdef [smatch scan]Sami Kerola2011-12-027-17/+17
| | | | | | Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: fix mac partition detectionFrancesco Cosoleto2011-11-221-5/+7
| | | | | | | This fixes the buffer length passed to blkid_probe_get_buffer() calls, and the block size byte order (on little-endian systems). Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* libblkid: export PTMAGIC also if only PTTYPE requestedKarel Zak2011-11-152-8/+8
| | | | | Reported-by: David Zeuthen <davidz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: export info about PT magic stringsKarel Zak2011-11-134-9/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add BLKID_PARTS_MAGICKarel Zak2011-11-115-17/+36
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkid_do_wipe()Karel Zak2011-11-113-0/+96
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>