summaryrefslogtreecommitdiff
path: root/lib/e2p
AgeCommit message (Collapse)AuthorFilesLines
2008-09-02Fix pkg-config files: use Requires.private and fix the include directoryTheodore Ts'o1-1/+1
Addresses-Sourceforge-Bug: #2089537 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-01libe2p: Fix potential core-dumping bug in iterate_on_dir()Theodore Ts'o1-3/+3
iterate_on_dir() can try to copy too much data from the directory entry, resulting in a crash. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-29Update makefile dependency for lib/e2p/Makefile.inTheodore Ts'o1-1/+9
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o15-45/+45
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-24libe2p: Fix namespace leakage of os_tabTheodore Ts'o1-1/+1
Make os_tab static, since there's no reason it should be exposed. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-24add debugfs command to print known featuresAndreas Dilger3-2/+141
Print out the currently supported features of e2fsprogs/libext2fs via a new "debugfs supported_features" command. This helps scripts to know whether it is possible to try and enable specific features in the filesystem. Signed-off-by: Kalpak Shah <kalpak.shah@sun.com> Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-08-15Fix a typo in lib/e2p/Makefile.inLi Zefan1-1/+1
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-04-22Basic flexible block group supportTheodore Ts'o1-0/+3
Add superblock definition, and dumpe2fs and debugfs support. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Valerie Clement <valerie.clement@bull.net> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-04-20libe2p: Print the s_min_extra_isize and s_wanted_extra_isize fieldsTheodore Ts'o1-1/+7
Make dumpe2fs and debugfs print out the s_min_extra_isize and s_wanted_extra_isize fields from the superblock. Update tests expect files as appropriate. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-17Change the primary name of the extents feature to be 'extent'Theodore Ts'o1-2/+2
This was the original name used by Lustre's patches; keep the plural when converting feature names to a feature mask for compatibility's sake. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-17Rename the feature uninit_groups to uninit_bgTheodore Ts'o1-0/+2
Allow the old name of uninit_groups when converting feature names for backwards compatibility for scripts running mke2fs and tune2fs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-17Add support for the HUGE_FILE featureTheodore Ts'o1-0/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-03-20Rename feature name from gdt_checksum to uninit_groupsJose R. Santos1-1/+1
This name is a more intuitive option when running mke2fs. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-27Merge branch 'maint'Theodore Ts'o3-10/+46
Conflicts: lib/blkid/devname.c lib/blkid/probe.c misc/mke2fs.c misc/tune2fs.c
2008-02-26libe2p: New e2p_edit_feature2 which provides better error handlingTheodore Ts'o2-8/+44
This creates a new enhanced edit_feature function for libe2p which supports a different set of feature flags that are OK to clear as opposed to set, and which returns more specific information about why the user provided an invalid edit feature command. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-22libe2p: Change Raid to RAID in display optionTheodore Ts'o1-2/+2
Update m_raid_opt test so that it reflects the code change. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-18Merge branch 'maint' into nextTheodore Ts'o1-0/+6
2008-02-18libe2p: Make list_super2() print the RAID stride and stripe-widthTheodore Ts'o1-0/+6
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Merge branch 'maint' into nextTheodore Ts'o1-2/+6
Conflicts: configure lib/ext2fs/ext2_fs.h misc/e2image.c
2008-01-26Add support for the test_fs flagTheodore Ts'o1-2/+6
The test_fs flag is an "ok to be used with test kernel code" flag. It makes it easier for us to determine whether a filesystem should be mounted using ext4 or not. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-11-03Merge basic FLEX_BG supportTheodore Ts'o1-0/+2
Merge commit 'c2d4300b8a4a13d8a78b86c386f76259f23feec2' into next
2007-11-03Enable FLEX_BG feature supportJose R. Santos1-0/+2
Add FLEX_BG as a supported feature bit. Add support to mke2fs to create filesystems with FLEX_BG. Add support to tune2fs to add (and remove, if it won't break filesystem consistency) the FLEX_BG feature. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> -- lib/e2p/feature.c | 2 ++ lib/ext2fs/ext2fs.h | 6 ++++-- misc/mke2fs.c | 7 ++++++- 3 files changed, 12 insertions(+), 3 deletions(-)
2007-10-22libe2p: Change iterate_on_dir so that it counts non-zero returnsTheodore Ts'o1-3/+4
To allow error messages to be reflected up, if the callback function returns a non-zero value, bump a counter and return the number of times the callback function signals an error by returning a non-zero status code. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-10-22libe2p: Use lstat() instead of stat() in fsetflags() and fgetflags()Theodore Ts'o2-2/+2
We can't set the flags on symbolic links, so check for them using lstat(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-08Remove Changelog files since they're not used after the git migrationTheodore Ts'o1-719/+0
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-06-24Update Release Notes, Changelogs, version.h, etc. for 1.40 releaseTheodore Ts'o1-0/+4
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-04-02resize2fs (libe2p): Fix resize2fs parsing of size parameter (in sector units)Theodore Ts'o2-1/+8
This was actually a bug in libe2p's parse_num_blocks() function. When handling the 's' suffix, it was ignoring the blocksize information passed in from the caller and always interpreting the number in terms of a 1k blocksize. Addresses Debian Bug: #408298 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-03-21[COVERITY] Fix memory leak in libe2p (e2p_edit_mntopts)Brian Behlendorf2-6/+13
Need to free memory allocated to buf. Coverity ID: 17: Resource Leak Coverity ID: 18: Resource Leak Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-03-21[COVERITY] Fix memory leak in libe2p (e2p_edit_feature)Brian Behlendorf2-8/+17
Coverity ID: 15: Resource Leak Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-11-12Add support for printing new filesystem featuresTheodore Ts'o2-0/+19
Add support for printing the huge_file, gdt_checksum, dir_nlink, extra_isize, extent, and 64bit features. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-11-11Add directory hashed signed/unsigned hint to superblockTheodore Ts'o2-0/+28
The e2fsprogs and kernel implementation of directory hash tree has a bug which causes the implementation to be dependent on whether characters are signed or unsigned. Platforms such as the PowerPC, Arm, and S/390 have signed characters by default, which means that hash directories on those systems are incompatible with hash directories on other systems, such as the x86. To fix this we add a new flags field to the superblock, and define two new bits in that field to indicate whether or not the directory should be signed or unsigned. If the bits are not set, e2fsck and fixed kernels will set them to the signed/unsigned value of the currently running platform, and then respect those bits when calculating the directory hash. This allows compatibility with current filesystems, as well as allowing cross-architectural compatibility. Addresses Debian Bug: #389772 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-09-29Fix e2p_percent() crash if percentage was zero.Theodore Ts'o2-0/+7
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-08-30Fix potential 2**32-1 overflow by using e2p_percent()Theodore Ts'o4-2/+72
Add a new functiom, e2p_percent(), which correct calculates the percentage of a number based on a given percentage, without worrying about overflow issues. This is used where we calculate the number of reserved blocks using a percentage of the total number of blocks in a filesystem. Based on patches from Eric Sandeen, but generalized to use this new function. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Eric Sandeen <esandeen@redhat.com>
2006-08-05Rename EXT3_EXTENTS_FL to EXT4_EXTENTS_FL and make it visible to the userAndreas Dilger2-0/+5
lsattr will display the EXT4_EXTENTS_FL flag Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-05-08Add support for EXT2_FEATURE_COMPAT_LAZY_BGTheodore Ts'o2-0/+6
This feature is initially intended for testing purposes; it allows an ext2/ext3 developer to create very large filesystems using sparse files where most of the block groups are not initialized and so do not require much disk space. Eventually it could be used as a way of speeding up mke2fs and e2fsck for large filesystem, but that would be best done by adding an RO_COMPAT extension to the filesystem to allow the inode table to be lazily initialized on a per-block basis, instead of being entirely initialized or entirely unused on a per-blockgroup basis. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-04-22Fix bug which could cause dumpe2fs to rarely fail to print a UUIDTheodore Ts'o2-1/+8
uuid.c (e2p_is_null_uuid): Fix really stupid bug which could cause dumpe2fs to fail to display a the journal or hash seed UUID. (Thanks to Guillaume Chambraud for pointing this out.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-03-23Change mke2fs to use /etc/mke2fs.conf as a configuration fileTheodore Ts'o2-3/+17
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-12-10Address parallel build problem in the library MakefilesTheodore Ts'o2-0/+8
Add a dependency to make sure that the subdirectories are created before creating all of the object files. Addresses Sourceforge Bug: #1261553 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-06-30Update for e2fsprogs 1.38 release.Theodore Ts'o1-0/+4
2005-06-16Makefile.in: Add an include path specifier when buildingTheodore Ts'o2-1/+9
tst_ostype so that "make check" will build correctly on systems without the include files from e2fsprogs installed in the system include directory.
2005-05-06Update "make depend" information. Fixes SMP parallel build problem.Theodore Ts'o1-1/+4
(Addresses Sourceforge Bug: #1157933)
2005-05-06Fix build of tst_ostype when doing a "make check" in lib/e2p; it was missingTheodore Ts'o2-1/+7
CFLAGS in the compile rule. (Addresses Sourceforge Bug: #1180572)
2005-04-09ls.c: Add stdlib.h header file since list_super2() uses theTheodore Ts'o2-0/+6
free() function.
2005-03-31ostype.c (e2p_os2string): Check to make sure malloc() isTheodore Ts'o2-1/+10
successful before attempting to copy into it. Add #include of stdlib.h to fix a core dump bug on the IA64 architecture. (Addresses Debian Bug #302200)
2005-03-21Update for the e2fsprogs 1.37 release.Theodore Ts'o1-0/+4
2005-03-19Add new functions which convert between a string and os_type: e2p_os2string()Theodore Ts'o5-15/+101
and e2p_string2os() in the e2p library.
2005-02-05Update for release of e2fsprogs 1.36.Theodore Ts'o1-0/+4
2005-02-05Remove *.pc files on a "make distclean"Theodore Ts'o2-1/+6
Remove emacs backup files in tests/Makefile on a "make clean"
2005-01-26Add pkg-config files to e2fsprogs's libraries.Theodore Ts'o3-3/+25
2005-01-19Fix stupid typo in the CreateOS FreeBSD/Solaris changeset. Also included Theodore Ts'o1-0/+5
changelogs which I forgot to include in the changeset.