summaryrefslogtreecommitdiffstats
path: root/shlibs
Commit message (Collapse)AuthorAgeFilesLines
* libblkid: DRBD support for blkidBastian Friedrich2010-01-044-0/+109
| | | | | | | | | | | | | | | | DRBD is the Distributed Replicated Block Device, a replication service for low level block devices. The attached patch provides libblkid detection for v08 type drbd devices (v08 is the current one). [kzak@redhat.com: - port to libblkid 2.17 - use BLKID_USAGE_RAID flag - remove BLKID_IDINFO_TOLERANT flag - note that DRBD is supported since kernel v2.6.33-rc1] Signed-off-by: Bastian Friedrich <bastian.friedrich@collax.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: rename highpoint RAIDs to hpt{37,45}x_raid_memberKarel Zak2009-12-151-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix highpoint37x detectionKarel Zak2009-12-151-2/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix Adaptec RAID detectionKarel Zak2009-12-151-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix blkid_fstatat() codeKarel Zak2009-12-041-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rewrite TLS detectionKarel Zak2009-12-041-3/+3
| | | | | | | | | | | | | | | | | | * use more robust tls.m4 from gcc project The old version (from util-linux-ng) used AC_TRY_COMPILE. That's wrong. We need to use AC_RUN_IFELSE to check that the result is link-able and executable. The new version also test it TLS really works in multi-thread applications. * we need to detect TLS usability for cross-compiling * this new version supports __thread keyword only, it seems that we needn't to care about anything other Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix UFS detectionKarel Zak2009-11-261-3/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix NTFS non-ASCII labelsKarel Zak2009-11-131-15/+3Star
| | | | | Addresses-Red-Hat-Bug: #536797 Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove duplicate debug messageKarel Zak2009-11-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: properly reset position in probing chainsKarel Zak2009-11-111-7/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: don't return empty LABELsKarel Zak2009-11-103-1/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "libblkid: fix buffer usage in FAT prober"Karel Zak2009-11-101-14/+3Star
| | | | | | | | | This patch is unnecessary, the library uses two buffers and the VFAT superblock is always stored in the probe->sbbuf buffer which is never overwritten. It seems that FAT fsinfo is also in the superblock buffer. I was too paranoid :-) Sorry. This reverts commit 041a4ff1db7c3004644211377ac828e8a536da02.
* build-sys: clean up gtk-doc stuffKarel Zak2009-11-061-4/+4
| | | | | | | | | | | | | | | | | * gtk-doc.make does not care about difference between $srcdir and $builddir and many things are generated into $srcdir. It's pretty difficult to support out-of-source build... * gtk-doc expects that many generated files are stored in repository (we don't use XML templates, all documentation in source code only). * we don't want to distribute generated html files, the docs is attractive for very small group of people... Frankly, it would be nice to found something more robust and better than gtk-doc. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix out-of-source buildKarel Zak2009-11-066-6/+8
| | | | | | The blkid.h file is generated and stored in $top_builddir. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't distribute generated blkid.hKarel Zak2009-11-061-3/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add superblocks.c sampleKarel Zak2009-11-023-1/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add sector size funcs to blkid.h.inKarel Zak2009-11-021-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: does not return useless binary dataKarel Zak2009-10-301-1/+1
| | | | | | | | | Currently, the binary blkid_probe_get_{topology,partitions}() API returns empty structs when information has not been gathered. This is confusing for applications. It's seems better to return NULL. Reported-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: topology - add logical and physical sector sizeKarel Zak2009-10-308-5/+99
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add BLKID_{VERSION,DATE} to blkid.hKarel Zak2009-10-274-1/+11
| | | | | | | | The original e2fsprogs has BLKID_{VERSION,DATE} macros in blkid.h. Although the macros are not updated for many years in e2fsprogs. So I guess nobody uses it. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: return first detected crypto deviceScott James Remnant2009-10-261-4/+5
| | | | | | | | | | | | | Crypto devices may sometimes have multiple additional prober matches, however just like RAID, there's no danger of activating the wrong one since special help is needed to activate the block device before it can be used. Thus modify blkid_do_safeprobe() to break out of the loop when a crypto device is detected, as it does already for RAID. Signed-off-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: and libblkid: covert /dev/dm-N to /dev/mapper/<name>Karel Zak2009-10-261-25/+2Star
| | | | | | | | | | | | | * mount(8) uses private device-mapper names in mtab * libblkid returns private device-mapper names when evaluate udev /dev/disk-by symlinks. * on systems where DM is fully integrated with udev the /dev/mapper/<name> files are symlinks to /dev/dm-N. It means we need a special care to hide private device-mapper names. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: convert GPT partition LBA to 512-byte sectorsKarel Zak2009-10-221-4/+9
| | | | | | | | | | | | | | The libblkid keeps information about partitions in 512-byte counts. This patch: * convert GPT partition LBA to 512-byte sectors * fix n+1 bug in GPT partition size, because: "The partition is defined as all the logical blocks **inclusive** of the StartingLBA and EndingLBA." (UEFI 2.3) Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use BLKSSZGET for GPT sectorsKarel Zak2009-10-222-11/+29
| | | | | | | | | | | | | | The current implementation uses fixed sector size (512 bytes), that's wrong. UEFI standard requires real logical sector size -- it means BLKSSZGET for Linux. The size of GPT header is not static, but whole sector is allocated for the header. In theory the HeaderSize field could be greater than sizeof(struct gpt_header). It means we have to read whole sector with the header, because the header crc32 checksum is counted according to HeaderSize. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: topology - ignore non-blockdevsKarel Zak2009-10-191-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for topology ioctlsKarel Zak2009-10-194-0/+73
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for VMFS (VMware File System)Mike Hommey2009-10-164-2/+108
| | | | | Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: update docs/.gitignoreKarel Zak2009-10-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add missing packed attributesKarel Zak2009-10-1626-46/+50
| | | | | | | | This patch add __attribute__((packed)) to almost all superblock and disk label definitions. Well, in many cases this is not necessary, but it's a cheap way how to keep the code robust... Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use c.h in samplesKarel Zak2009-10-162-8/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use c.hKarel Zak2009-10-161-21/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix typo s/Hihg/High/Jim Meyering2009-10-151-1/+1
| | | | | | * shlibs/blkid/docs/libblkid-docs.xml Signed-off-by: Jim Meyering <meyering@redhat.com>
* libblkid: add note about UUID_SUB, increment number of superblock valuesKarel Zak2009-10-152-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: clean up gtk-doc usageKarel Zak2009-10-121-1/+1
| | | | | | | | | | | Currently gtk-doc is optional. Unfortunately, the ./configure script still depends on GTK_DOC_CHECK macro and shlibs/blkid/docs/Makefile.am depends on gtk-doc.make. It seems that the best solution is to add gtk-doc.[make,m4] files to the repository. Signed-off-by: Karel Zak <kzak@redhat.com>
* Remove now unused <sys/ioctl.h> includesGuillem Jover2009-10-092-2/+0Star
| | | | | | Those became unused with the switch to the blkdev functions. Signed-off-by: Guillem Jover <guillem@hadrons.org>
* libblkid: fix warning message in mkfs sampleKarel Zak2009-10-081-1/+1
|
* libblkid: add a probe for bfsChristoph Hellwig2009-10-064-2/+28
| | | | | | | | blkid is currently missing a probe for the bfs filesystem, leading to a blkid-enable xfsprogs failing xfsqa testcase 032. This patch adds a trivial probe for the magic. Signed-off-by: Christoph Hellwig <hch@lst.de>
* libblkid: fix buffer usage in FAT proberKarel Zak2009-10-061-3/+14
| | | | | | | | | The blkid_probe_get_buffer() function returns buffer that could be overwritten in the next blkid_probe_get_buffer() call. It means that we have to save FAT super block to the temporary buffer if we want to call blkid_probe_get_buffer() for directory entries or fsinfo. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix FAT super block definitionLawrence Rust2009-10-051-12/+7Star
| | | | | Signed-off-by: Lawrence Rust <lawrence@softsystem.co.uk> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix blkid_do_probe() to work properly with chainsKarel Zak2009-10-023-17/+25
| | | | | | | The blkid_do_probe() always switched to the new chain -- that's bad, we have to try all probing methods in the chain. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkit_[un]ref() to TODOKarel Zak2009-10-012-0/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix segfault in blkid_do_probe()Karel Zak2009-10-011-4/+8
| | | | | | | | | | | | This: pr->cur_chain += sizeof(struct blkid_chain); is nonsense of course, there should be a cast to (char *) or so. It seems that the most robust solution is to avoid this game with pointers and use chain->driver-id which is useful as array index. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix non-magic FAT detectionKarel Zak2009-10-011-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Sep 30, 2009 at 03:15:41PM +0200, Lawrence Rust wrote: > The problem is with shlibs/blkid/src/probers/vfat.c.  At the end of > this file the struct blkid_idinfo is declared with some magic > search strings.  In particular, 2 patterns are defined to match the > single byte jmp/jxx opcodes at the start of a DOS boot sector. > Because the partition was once formatted as a bootable DOS > partition it matches these patterns and consequently the function > probe_vfat is called.  For these simple pattern matches the function > probe_fat_nomagic is called to filter out false positives. > > In normal circumstances only MSDOS 2 and earlier floppies should be > detected by this function.  A very important feature of these disks > is the boot signature - bytes 0x55, 0xaa at the end of the 1st > sector which indicate to the BIOS that the disk is bootable.  All > MSDOS floppies have these bytes but the function probe_fat_nomagic > doesn't check for them. Note that the msdos/vfat superblock comments has been suggested by Lawrence. Reported-by: Lawrence Rust <lawrence@softsystem.co.uk> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use blkid_new_probe_from_filename() in docsKarel Zak2009-09-291-10/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkid_new_probe_from_filename()Karel Zak2009-09-298-41/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for SBMAGIC and SBMAGIC_OFFSETKarel Zak2009-09-293-8/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix gcc warning (warn_unused_result)Karel Zak2009-09-291-1/+5
| | | | | | | | save.c: In function ‘blkid_flush_cache’: save.c:146: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix the default cache file pathKarel Zak2009-09-291-1/+1
| | | | | | | | | | | | The blkid_get_cache_filename() can returns BLKID_CONFIG_FILE instead BLKID_CACHE_FILE. Yeah, pretty stupid typo. Fortunately, this brown-paper-bag bug is invisible in almost all cases, because the default path is returned by blkid_read_config(). The bug can be visible only when blkid_read_config() returns NULL -- it means on parses or malloc error. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: don't scan private /dev/.udev directoryKarel Zak2009-09-251-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use fstatat(), improve readdir() usageKarel Zak2009-09-253-35/+100
| | | | | | | | | | | | | | * fix possible memory leak in ubi_probe_all() * use dirent->d_type if available (this is tricky, because d_type is not supported on all systems and some filesystems returns DT_UNKNOWN). The dirent->d_type allows to avoid unnecessary stat() calls. * use fstatat() if available -- allows to avoid malloc() and sprintf("%s/%s", dirname, dirent->d_name) Signed-off-by: Karel Zak <kzak@redhat.com>