summaryrefslogtreecommitdiff
path: root/libblkid/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-21libblkid; fix memory leak in blkid_probe_get_wholedisk_probe()Karel Zak1-0/+3
Reported-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-16libblkid: minor docs changesFrancesco Cosoleto2-9/+9
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-12-02build-sys: check HAVE_ definitions with #ifdef [smatch scan]Sami Kerola7-17/+17
Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-11-22libblkid: fix mac partition detectionFrancesco Cosoleto1-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>
2011-11-15libblkid: export PTMAGIC also if only PTTYPE requestedKarel Zak2-8/+8
Reported-by: David Zeuthen <davidz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-13libblkid: export info about PT magic stringsKarel Zak4-9/+41
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-11libblkid: add BLKID_PARTS_MAGICKarel Zak5-17/+36
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-11libblkid: add blkid_do_wipe()Karel Zak3-0/+96
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-10libblkid: don't call CDROM_GET_CAPABILITY for partitionsKarel Zak1-1/+4
Reported-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-09libblkid: silence a format string warning [-Wformat]Francesco Cosoleto1-1/+1
Fix the following clang warning: exfat.c:130:41: warning: conversion specifies type 'unsigned short' but the argument has type 'uint8_t' (aka 'unsigned char') [-Wformat] blkid_probe_sprintf_version(pr, "%hu.%hu", ~~^ %c Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-09-27misc: use %m in format string instead of %s and strerror(errno)Petr Uzel2-6/+5
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-09-12libblkid: remove unnecessary position check from list_for_each_safe loopsKarel Zak2-6/+1
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-09-10libblkid: fix smatch warningSami Kerola1-1/+1
libblkid/src/probe.c +798 blkid_probe_get_idmag(32) error: we previously assumed 'id' could be null. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-07libblkid: DRBD proxy data-log identification.Philipp Marek4-0/+58
Signed-off-by: Philipp Marek <philipp.marek@linbit.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-07libblkid: new magic for 8.4 style (unclean) activity log.Philipp Marek1-2/+4
Signed-off-by: Philipp Marek <philipp.marek@linbit.com>
2011-08-15libblkid: befs validate di_br_size !=0 and br_per_di_br != 0Timo Warns1-0/+7
Validate that di_br_size !=0 and br_per_di_br != 0. If one of them is 0, a division-by-zero error will be triggered. Signed-off-by: Timo Warns <warns@pre-sense.de>
2011-08-02libblkid: fix compiler warnings [-Wunused-parameter -Wsign-compare]Karel Zak3-12/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02libblkid: [superblocks] fix compiler warnings [-Wunused-parameter ↵Karel Zak22-57/+83
-Wsign-compare] Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02libblkid: [partitions] fix compiler warnings [-Wunused-parameter -Wsign-compare]Karel Zak11-28/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02libblkid: [topology] fix compiler warnings [-Wunused-parameter -Wsign-compare]Karel Zak7-16/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-26Merge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak1-3/+3
* 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit: include: move fsck return values to exitcodes.h include: move disk-utils/mkfs.h -> include/exitcodes.h mkfs.cramfs: coding style mkfs.cramfs: include-what-you-use header check mkfs.cramfs: error printing fixes mkfs.cramfs: convert spaces to tabs mkfs.cramfs: validate numeric user inputs mkfs.cramfs: few symbolic exit codes where missing md5: use symbolical digest length mkfs.cramfs: use program_invocation_short_name mkfs.cramfs: use xalloc.h fsck.cramfs: add missed strings to translation fsck.cramfs: coding style fsck.cramfs: use xalloc.h fsck.cramfs: retire die function cramfs.h: coding style cramfs: use stdint.h instead of u{8,16,32} cramfs_common: coding style Conflicts: disk-utils/Makefile.am Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-26libblkid: vfat big endian fixJindrich Makovicka1-1/+1
when getting the next cluster id, clear the 4 most significant bits after converting to machine endian Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
2011-07-26libblkid: use 64bit offset in search_fat_label to avoid truncationJindrich Makovicka1-3/+3
[kzak@redhat.com: - use %jd for the offset in debug message] Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-23libblkid: update docsKarel Zak7-31/+41
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-21md5: use symbolical digest lengthSami Kerola1-3/+3
Magic hash lenght number 16 is turned to a definition MD5LENGTH, and put into use everywhere where md5 checksum is in use. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-07-20libblkid: move MINIX_MAXPARTITIONS to minix.hSami Kerola1-5/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-07-20libblkid: use MINIX_BLOCK_SIZE from minix.hSami Kerola1-3/+0
In the minix.h two definitions where renamed, so that the single definition is reusable in fsck.minix, mkfs.minix and libblkid. BLOCK_SIZE_BITS -> MINIX_BLOCK_SIZE_BITS BLOCK_SIZE -> MINIX_BLOCK_SIZE Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-07-20libblkid: use superblock structure from minix.hSami Kerola1-29/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-07-01libblkid: add docs for new PART_ENTRY_* valuesKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20blkid: list all known filesystems/RAIDs (add -k option)Karel Zak3-0/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20libblkid: add debug messageKarel Zak1-3/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14libblkid: don't ignore swap UUID if only first byte is zeroRichard W.M. Jones1-1/+1
[kzak@redhat.com: - remove memcmp(zero_uuid, ...), library already checks for empty UUIDs] Signed-off-by: "Richard W.M. Jones" <rjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak93-0/+18844
Signed-off-by: Karel Zak <kzak@redhat.com>