summaryrefslogtreecommitdiff
path: root/lib/blkid/probe.h
AgeCommit message (Collapse)AuthorFilesLines
2011-02-25e2fsprogs: reserving code points for new ext4 quota featureAditya Kali1-0/+1
This patch adds support for detecting the new 'quota' feature in ext4. The patch reserves code points for usr and group quota inodes and also for the feature flag EXT4_FEATURE_RO_COMPAT_QUOTA. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-01-20blkid: recognize btrfsEric Sandeen1-0/+104
Add btrfs detection to libblkid, now that the disk format should be recognizable in the future. # misc/blkid /tmp/fsfile /tmp/fsfile: LABEL="mylabel" UUID="102b07f0-0e79-4b42-8a4e-1dde418bbe6d" TYPE="btrfs" Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o1-6/+6
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-24libblkid: Strengthen the JFS probe routineTheodore Ts'o1-4/+7
Check to make sure a JFS filesystem is really correct by checking the relationship between the following fields in the JFS superblock: s_bsize, s_l2bsize, s_pbsize, s_l2pbsize, and s_l2bfactor. Thanks to Lesh Bogdanow for this suggestion. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-22libblkid: Enhance support for MacOS's hfs, hfsplus, and hfsx filesystemsTheodore Ts'o1-0/+72
Add detection for hfsx filesystems. Add label and uuid detetion for hfs, hfsplus, and hfsx. Addresses-Sourceforge-Feature-Requests: #2060292 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-19blkid: detect LVM2 physical volumesEric Sandeen1-0/+14
Bits liberally stolen from lvm2 userspace. Addresses-Red-Hat-Bugzilla: #409321 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-01-27blkid: Add support for HFS+ detectionTheodore Ts'o1-0/+42
From SLES 10 patch: e2fsprogs-blkid_probe_hfsplus.patch Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-26Teach the blkid library about ext4/ext4devTheodore Ts'o1-4/+54
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-06-19Add more paranoid NTFS probing and fetch UUID and LABEL informationTheodore Ts'o1-0/+47
Hopefully this addresses false positives by the blkid library when detecting NTFS partitions. Addresses Launchpad Bug: #110138 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-09-17Add GFS/GFS2 support to the blkid library.Karel Zak1-0/+48
Signed-off-by: Karel Zak <kzak@redhat.com>
2006-05-30Switch endian detection from Linuxism to AC_C_BIGENDIAN.Matthias Andree1-1/+1
This fixes all blkid test failures on FreeBSD 4.11 i386. Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
2006-03-10Add EXT_JOURNAL to the blkid tag of ext3 filesystems.Theodore Ts'o1-0/+18
If the filesystem has an external journal, store the UUID of the external journal in the tag EXT_JOURNAL. If the filesystem type has changed, clear all the tags on the device, not just a preset list of LABEL, UUID, TYPE, and SEC_TYPE. Fix a bug so that blkid_set_tag will work correctly when freeing a tag when the input name parameter comes from the tag that we are freeing. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-09-10Generic blkid library cleanupTheodore Ts'o1-3/+15
Change superblock and generic i/o functions to be more generic. Clean up interface to the probe function. Fix memory leak. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-09-10Add support to extract basic iso9660 label information to the blkid libraryTheodore Ts'o1-5/+9
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-09-10Add support for detecting the reiser4 filesystem in the blkid library.Theodore Ts'o1-0/+8
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-09-06Improve VFAT detection to support filesystems w/o a magic string in the ↵Karel Zak1-0/+19
superblock The current libblkid code expects that there's magic string in FAT super block (like "FAT12", "FAT16", ...). It's very often right, but valid FAT super block may be without magic string too :-( The patch from attachment fix this problem. It's inspired by HAL and Linux kernel. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-05-07Fix gcc -Wall nits in the blkid library.Theodore Ts'o1-5/+5
2005-05-05Fix libblkid's magic number recognition for the cramfs filesystem, Theodore Ts'o1-0/+15
and add support to pull out the label for cramfs filesystems. Thanks to Karel Zak (kzak at redhat.com) for the patch.
2005-01-21Add support to the blkid library to recognize Oracle ASM volumes.Theodore Ts'o1-0/+9
2005-01-10Apply Janos Farkas's patch to support extracting the uuid and label Theodore Ts'o1-8/+11
information from swap partitions. Also make sure that if a partition has a label removed, that the label is removed form the blkid cache as well. Add support for detecting 32k and 64k pagesize swap files.
2004-11-30Avoid using uint and uchar types when probing for ocfs2 filesystems Theodore Ts'o1-21/+21
in the blkid library, to allow compilation using dietlibc.
2004-09-17Add support for ocfs2 detection to the blkid library, Theodore Ts'o1-0/+15
courtesy of manish.singh@oracle.com
2004-03-04probe.c (probe_ocfs), probe.h: Add support for the OracleTheodore Ts'o1-0/+25
Cluster Filesystem (ocfs). Patches courtesy of Rusty Lynch (rusty@linux.co.intel.com).
2003-07-22probe.c (probe_udf): Add specific UDF probing code, and probeTheodore Ts'o1-0/+8
UDF before checking for ISO9660 filesystems.
2003-04-03Fix XFS superblock definition. Add support toTheodore Ts'o1-1/+20
extract UUID and labels for JFS and romfs. (Thanks to Janos Farkas <chexum@acomp.hu>.)
2003-03-06Fix up lots of portability problems that caused e2fsprogs not to build ↵Theodore Ts'o1-6/+8
successfully under Solaris.
2003-02-22Internal changes to the blkid library:Theodore Ts'o1-2/+1
1) Only one tag with a particular name can be attached to a device at a time. This significantly simplifies the library, and was needed to allow the cache file to be re-read and changes integrated into the in-core version of the data structure in a simpler fashion than earlier versions of the library. 2) To accomodate this, the ext2/ext3 filesystems are now always tagged as "ext2" type filesystems. Ext3 filesystems are tagged with a SEC_TYPE tag with the value ext3. 3) The new blkid_read_cache() function checks the mod time of the cache file, and if the file has been changed since the last time the cache file was read into memory, it is re-read. This function is now called before probing all of the devices in the system or searching all devices in the cache for a specific tag value. 4) After probing all devices, blkid_flush_cache() is called to write out the cache file. This assures that all of the hard work involved in doing a blkid_probe_all() is saved to disk.
2003-02-12Wholesale changes to blkid library to simplify the implementation Theodore Ts'o1-5/+7
and shrink its size. Change library version to be 1.0.
2003-01-27Roto-till and clean up libblkid API.Theodore Ts'o1-28/+77
read.c (parse_tag): Do not return that blkid_tag when parsing the blkid.tag file. resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in code from removed functions tag.c (blkid_create_tag): Don't return the newly tag strcture any more, as it's not needed. (blkid_find_tag_cache, blkid_get_tag_cache, blkid_token_to_tag, blkid_find_tv_tags): Remove these functions, as they are either only used once or have interfaces that should be deprecated. (blkid_find_tag_dev, blkid_find_head_cache): Replace use of blkid_tag with one or two const char * type/value arguments. (blkid_find_dev_with_tag): Fold in code from removed functions probe.h, probe.c: Use a more sophisticated set of byte-swapping routines which are more compact and efficient. Drop calculation of bid_free, since it's unnecessary. Avoid save.c (blkid_save_cache): Set the permissions on the blkid cache file to 644.
2003-01-26Separate public and private interfaces into separate header files.Theodore Ts'o1-1/+1
Start separating internal implementation details from the publically exported interface of the blkid library.
2003-01-25Fix gcc -Wall nits.Theodore Ts'o1-6/+6
2003-01-23Integrate new blkid library.Theodore Ts'o1-0/+228