summaryrefslogtreecommitdiff
path: root/libs/blkid/src/probers/ext.c
AgeCommit message (Collapse)AuthorFilesLines
2009-05-14build-sys: rename /libs to /shlibsKarel Zak1-571/+0
On Wed, May 13, 2009 at 05:38:49AM -0400, Christoph Hellwig wrote: > Also the lib vs libs toplevel directories probably aren't a too good > choice. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09blkid: add fallback to ext4 for 2.6.29+ kernels if ext2 is not presentTheodore Ts'o1-115/+160
Starting in 2.6.29, ext4 can be used to support filesystems without a journal. So if ext2 is not present, and the kernel version is greater than 2.6.29, and ext4 is present, return a filesystme type of ext4. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> blkid: Add fallback to ext4 for 2.6.29+ kernels if ext2 is not present Starting in 2.6.29, ext4 can be used to support filesystems without a journal. So if ext2 is not present, and the kernel version is greater than 2.6.29, and ext4 is present, return a filesystme type of ext4. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09blkid: recognize ext4(dev) without journalEric Sandeen1-8/+0
ext4/ext4dev no longer require a journal. w/o this blkid doesn't recognize after: We still must have one ext3-incompat-feature to flag as ext4(dev) so we shouldn't ever mis-recognize it. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-24blkid: don't dereference NULL upon slashless module dependency lineJim Meyering1-2/+3
* probers/ext.c (check_for_modules): Skip current line if it has no slash. [kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng] Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkid: recognize ext3 with test_fs set as ext3Eric Sandeen1-4/+0
It seems that if we have the test_filesystem flag set on an ext3 filesystem(!) on a system which provides ext4, blkid gets confused. According to the current logic: * It's not an ext4dev filesystem, because the system provides ext4. * It's not an ext4 filesystem, because it has no ext4 features. * It's not an ext3 filesystem, because the test flag is set. In the end, it's nothing. blkid should return *something* that is mountable... I'm inclined to think that ext3 should be the right answer, if no ext4-specific features are set. This would mean just dropping the EXT2_FLAGS_TEST_FILESYS test in probe_ext3(), because ext4 & ext4dev probes have come first already. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkid: fix file descriptor leak when checking for a moduleKarel Zak1-1/+3
[kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkis: fix detection of ext4dev as ext4Eric Sandeen1-2/+6
If only ext4 is available (as a module or in /proc/filesystems) blkid wasn't properly testing for it, because the time checks were backwards and always failed. This caused old ext4dev filesystems to fail to mount as ext4. With this patch it works fine. Also, don't try to check for modules on a non-Linux system. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkid: cleanup starts of probing filesKarel Zak1-10/+2
* libblkid was and is licensed under LGPL The GPL comment in some files was unwished mistake (copy & past the start of files from my other project....). * add information about inspiration by libvolume_id * rename *_meta to _metadata * rename *_off to off * use sizeof() rather than some magic constants * remove unnecessary #includes Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkid: fix ext2 SEC_TYPEKarel Zak1-2/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11blkid: add ext{2,3,4,4devel} supportKarel Zak1-0/+534
Signed-off-by: Karel Zak <kzak@redhat.com>