summaryrefslogtreecommitdiff
path: root/shlibs/blkid/src
AgeCommit message (Collapse)AuthorFilesLines
2011-01-31libblkid: conditionalise parts from blkid/topology for LinuxFabian Groffen3-7/+14
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-31build-sys: provide missing strnlen from strutilsFabian Groffen1-1/+2
Solaris lacks strnlen, provide it from strutils.c. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-25libmount: don't compile tests by defaultKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-23include: emulate dirfd when necessaryFabian Groffen1-5/+7
dirfd is not available on Solaris 10, it is available on latest OpenSolaris releases though. Do some autoconf trickery to determine if providing an alternative dirfd function is necessary and possible. shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will lose it's dd_fd member again. Rearrange defines and includes to make sense per comments, and not conflict on Solaris. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20use uint32_t instead of u_int32_tFabian Groffen1-4/+4
Solaris doesn't have u_int32_t, use standards uint32_t instead Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20libblkid: add blkdev.h to blkidP.hKarel Zak8-9/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-20make major and minor available on SolarisKarel Zak5-15/+0
Reported-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-04remove duplicate includesKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03libblkid: support LIBBLKID_DEBUG= env.Karel Zak1-1/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03lib: [env] consolidate safe_getenv() usageKarel Zak3-33/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-01libblkid: use PRId64 in PT parserKarel Zak1-7/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-30libblkid: fix endian conversion bug in NILFSKarel Zak1-1/+1
Reported-by: Andrew Nayenko <resver@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-03libblkid: NTFS volume label not foundKarel Zak1-1/+1
Reported-by: Hugh Eaves <hugh@hugheaves.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30rename util-linux-ng back to util-linuxKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30libblkid: add LINHIB0001 signature to swap proberKarel Zak1-0/+12
The new swsuspend signature has been added by commit 3624eb04c24861ab296842414f9752a393e68372 to kernel 2.6.37-rc1. Reported-by: "Dr. David Alan Gilbert" <linux@treblig.org> Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/682176 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-29libblkid: remove unnecessary __UCLIBC__ checkMike Frysinger1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-26libblkid: 256MiB is min size of btrfsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23libblkid: remove unused variableKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23libblkid: cache is incorrectly revalidatedKarel Zak2-6/+5
for example: # echo "password" | cryptsetup luksFormat /dev/loop7 # blkid /dev/loop7 /dev/loop7: UUID="09240a80-1cf1-456d-9a6e-a35b39dc1f2b" TYPE="crypto_LUKS" # pvcreate -ff /dev/loop7 # blkid /dev/loop7 # the second blkid call has to return info about LVM. Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15libblkid: add blkid_probe_get_sectors()Davidlohr Bueso3-0/+13
This function allows users to obtain the device's 512-byte sector count. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-08libblkid: add magic to vfatJeroen Oortwijn1-0/+1
Add the "FAT " magic to vfat. There are devices that use this magic in their FAT filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/491476 Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
2010-11-01libblkid: add signature to FAT32 fsinfo blockJeroen Oortwijn1-0/+1
Add 0x41645252 to the list of valid signatures of the FAT32 fsinfo block. It isn't a valid signature, but there are devices that use this signature in their FAT32 filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/589369 Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
2010-10-25libmount: optimize blkid_devno_to_devname()Karel Zak1-23/+65
The brutal force /dev directory scanning should be used as a fallback solution only. Currently, almost all systems use udev and we can read the name from /sys/block/<maj>:<min> symlink. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-21libblkid: fix memory leakIgor Bazhitov1-0/+2
search_type and search_handle fields of blkid_dev_iterate iterator are not being freed after usage. Add cleanup code. Signed-off-by: Igor Bazhitov <igor.bazhitov@gmail.com>
2010-10-15libblkid: fix MBR detection on iPod and cleanup vfat codeKarel Zak4-196/+186
- move all FAT code to superblocks/vfat.c only - add a generic function to verify FAT superblock and use it in FAT prober as well as in MBR parser - add a more robust FAT cluster_count check (it seems that iPod contains an "almost valid" FAT superblock before MBR) Reported-by: Davidlohr Bueso <dave.bueso@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-15libblkid: consolidate magic strings detection codeKarel Zak4-49/+46
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-07libblkid: add searching in attributes dir to BeFSJeroen Oortwijn1-60/+323
Add searching for the be:volume_id attribute in the attributes directory of the root directory. UUID is now always set when the root directory contains the be:volume_id attribute. Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
2010-09-15libblkid: don't probe directoriesKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-09-07libblkid: don't ignore zero for SBMAGIC_OFFSETKarel Zak1-4/+3
The side effect of this bug is that wipefs(8) does not report LUKS... Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-13libblkid: wrong PT detection on RAID0Karel Zak1-1/+1
Reported-by: Yulia Kopkova <ykopkova@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-04libblkid: remove dead code sectionValerie Aurora1-47/+0
commit 2d12ea54c70c9e6a2b77ca6f7b6a786309a22fa7 Author: Valerie Aurora <vaurora@redhat.com> Date: Thu Jul 29 12:47:35 2010 -0700 libblkid: remove dead code section (duplication of ext* constants) Signed-off-by: Valerie Aurora <vaurora@redhat.com>
2010-07-29build-sys: drop the getsize test out of Makefile.amDiego Elio 'Flameeyes' Pettenò1-1/+1
The #ifdef TEST_PROGRAM block was removed with commit 3069624180bac35f1cd468249ddb9dfc91d1b7b1 so there is no point in keeping the tests declared, as it won't build. Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
2010-07-26libblkid: set tolerant flag for HFSAlexandre Peixoto Ferreira1-0/+1
An CDROM can contain both HFS and ISO9660 views on the same filesystem. This confuses mount/KDE/Gnome. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-07-26libblkid: fix typo filesystem name nilfs to nilfs2Jiro SEKIBA1-1/+1
The correct filesystem name is nilfs2, not nilfs. Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
2010-07-13libblkid: add nilfs2 filesystem superblock probeJiro SEKIBA4-0/+123
This patch implements nilfs2_idinfo to proble nilfs2 partition. The patch probes uuid, label, version and verify crc check sum of superblock. Signed-off-by: Jiro SEKIBA <jir@unicus.jp> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-14build-sys: minor changes for GNU/HurdSamuel Thibault2-0/+9
Here is a patch to fix the build on GNU/Hurd. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-06-07build-sys: use include/list.hKarel Zak1-2/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-04libblkid: optimize UDF label readingKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03include: move shlibs/.../list.h to the include/ directoryKarel Zak1-179/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01libblkid: add exFAT file system detection supportAndrew Nayenko4-2/+151
Add exFAT file system <http://en.wikipedia.org/wiki/ExFAT> detection support. Signed-off-by: Andrew Nayenko <resver@gmail.com>
2010-05-21libblkid: improve MD 0.90.0 detection (use sb->size)Karel Zak1-3/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: improbe DDF detectionKarel Zak1-6/+65
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: probe for (non-linux) RAIDs on whole devices onlyKarel Zak10-3/+35
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: cleanup superblocks_safeprobe()Karel Zak1-86/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: improve MD 0.90 detectionKarel Zak3-27/+33
We don't have to check for collision between partition table and RAID on all RAIDs. This problem is specific to MD, where underlying device could be a partition. The RAIDs like via, intel, ... always use whole-disks only. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: tiny change in debug outputKarel Zak1-2/+4
Use uint64_t rather than ssize_t for number of read bytes. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18libblkid: improve MD 1.0 detection, add UUID_SUBKarel Zak1-6/+64
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=592958 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-06libblkid: fix readline usageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-06libblkid: set correct offsets for TuxOnIce signatureChow Loong Jin1-6/+14
TuxOnIce stores its signature at the beginning of the swap, rather than at the end of the first page like swsusp does. [kzak@redhat.com: - use macro for TOI magic string, - check for TOI in swap probing function to avoid collision between swap and TOI] Signed-off-by: Chow Loong Jin <hyperair@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-28libblkid: fix LUKS versionKarel Zak1-1/+1
Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>