blob: fcbe8dbf69e55e47ef289d6844e37ede1cf5c0b9 [file] [log] [blame]
E2fsprogs 1.43.4 (January 31, 2017)
Fix e2fsck to require that the extended attribute is
always present even for files smaller than 60 bytes, to be consistent
with the kernel.
Fix a bug which was causing mke2fs -d and fuse2fs to improperly handle
Posix ACL's.
Fix a bug which could cause mke2fs -d to fail if there is an
zero-length file in source directory tree.
Clarify the default for the "proceed?" question printed by mke2fs and
tune2fs. (Addresses Debian Bug: #852727)
Debugfs will now display project quota information.
Debugfs's do_set_xattr now uses C strings to parse extended attribute
values, and will print the extended attributes using either C strings
or hex bytes when using debugfs's do_get_xattr command. It will now
allow developers to see the contents of the extended
Fix a bug in mke2fs where I/O errors weren't getting properly reported
to the user.
Fix multiblock writes in the unaligned Direct I/O fallback code.
(Which is rarely needed on Linux systems, but which is required on
Freebsd systems.)
Make sure the default mke2fs.conf file includes the uninit_bg feature
flag. (Which was accidentally dropped in v1.43).
Fix a bug in resize2fs when operating on very large file systems which
have a block size different from the VM page size.
If the reported device size is absurdly large, mke2fs will now report
an error instead looping forever or crashing.
Fix various Coverity warnings and other memory leaks in fuse2fs and
extended attribute manipulation functions.
Replace a test file but which had a "non-commercial use-only"
copyright permission file with a newer version from the Cyrus imapd
package which now has a 4-clause BSD license, which was making some
lawyers nervous, even though the test file in question was only used
in lib/et's regression testing and was never included in any compiled
binary. (Addresses Debian Bug: #840733)
Stop installing mkfs.ext4dev and fsck.ext4dev
Update Chinese, Czech, Polish, Serbian, and Spanish translations and
add the Finnish and Malay translation. (Addresses-Debian-Bug: #774379)
Update various man pages (Addresses-Debian-Bug: #852726)
Programming notes
Fix more FreeBSD-11 compatibility bugs, including some unmasked by
FreeBSD 11-rc2.
Fix the Mac build.
Fix build failure on RHEL 5.x systems caused by an old version of
Fix a number of bugs reported by ASAN that can cause some (mostly
harmless) memory dereferences beyond allocated memory.
E2fsprogs 1.43.3 (September 4, 2016)
Fix e2fsck's handling of timestamps on 32-bit systems.
E2fsck will now check, and if necessary repair the extra isize fields
in the inode and superblock.
Fix crashes on architectures such as sparc64 that are sensitive to
unaligned pointer derferences in the journal recovery code when
journal checksums are enabled.
Programming notes
Support reproducible builds by not capturing the build directory into
the mk_cmds and compile_et scripts. Also fix debian build rules to
ensure build reproducibility.
Fix debian build rules to ensure build reproducibility and to avoid
hiding the linker flags for e2fsck.static so the build hardening log
scanner can properly audit the build.
Fix compatibility with FreeBSD's pmake and teach the configure script
to force the creation of pmake-compatible Makefiles if the
FORCE_NATIVE_MAKE environment variable is set to a non-empty value.
E2fsprogs 1.43.2 (September 1, 2016)
Fix resize2fs so it will not crash if there is an extended attribute
block but it doesn't need to migate any blocks during an off-line
Fix a crash when mke2fs or debugfs tries to copy in a directory
hierarchy containing an empty directory
Mke2fs will now use a larger journal by default for filesystems
greater than 128 GB. (1GB instead of 128 MB.)
Fix an alignment bug in e2fsck which caused sparc64 architectures to
crash when replaying the journal on file systems with a 64-bit block
Clarify the message printed by tune2fs message when the user needs to
run e2fsck so it's clear that the -f flag to e2fsck is needed to
force a full e2fsck scan. (Addresses Debian Bug: #828022)
Fix a bug in e2fsck caused by a power failure during e2fsck's journal
replay could leave the file system in a state where if the file system
is mounted without doing a full e2fsck scan, the file system could get
Fix the logic in e2fsck which decides when to repair legacy negative
timestamp encodings.
Add a command to debugfs to copy the inode structure from one inode to
Fix a typo in debugfs's stat command when printing out the dtime field
on file systems with an extended timestamp.
Fix big endian bugs in the e2undo program. (Addresses Red Hat Bug
Debugfs's logdump can now properly handle journals larger than 2GB.
Avoid installing the man page for fuse2fs if it has not been built.
Update the Catalan, Chinese, Danish, Dutch, French, German, Polish,
Swedish, Ukrainian translations and added new translations for
Hugarian and Serbian.
Programming notes
Fix portability problems in fuse2fs. Previously it wouldn't build on
systems with older glibc versions where clock_gettime() is only
available in the librt library, and if libintl is not bundled into the
C library.
Remove complicated logic which caused a static code analyzer to flag a
false positive. (A static code analyzer also found a valid bug in
deciding when to repair a legacy negative timestamp encoding, so
eliminating false positives is important.)
Fixed a bug where the ext2fs library cloud provoke when a
extfs2_zero_blocks() is used (via fallocation, initializing a file
system, uninitialized uninitialized inode table blocks) after a
different file system which also used ext2fs_zero_blocks().
Enable the unix_io manager in the ext2fs library so it can accept the
use of a file descriptor. This is helpful in cases where the file
descriptor comes from temporary file created using O_TMPFILE, or
passed in from a unix domain socket.
Fix a Windows64 portability bug.
E2fsprogs 1.43.1 (June 8, 2016)
Fixed e2fsck so that it would correctly update the project quota usage
when deleting a corrupted and inode, and fixed mke2fs so it wouldn't
dereference memory beyond the small inode structure (which was wrong,
but worked mostly by accident unless hardening or some security malloc
was in use).
Fixed a large number of FreeBSD portability problems. (To build on
FreeBSD, however, we still need to use GNU Make and redirect dd to use
GNU dd.)
The configure script now supports --enable-hardening, which enables
stack protection, fortify, read-only relocation tables, immediate
dynamic symbol binding, and text segment ASLR (if the kernel has
userspace ASLR support enabled) by enabling position independent
executable code. (Distributions who want to do their own special
The configure script now supports --disable-tdb since on 64-bit
systems, it's much faster to just enable additional swap space. The
scratch_files feature in e2fsck.conf is mostly only useful on 32-bit
Fixed the Direct I/O fallback codepath in the Unix I/O manager so that
read/modify/write worked correctly. Fortunately in practice (with the
exception of the Undo handler when running on FreeBSD) used this buggy
codepath. so file systems weren't getting corrupted.
Mke2fs will now warn if the user provides a label which is too long.
(Addresses Debian Bug: #791630)
Debugfs's rdump command now works correctly when dumping the root
directory of a file system. (Addresses Debian Bug: #766125)
Fixed a bug in debugfs so it would correctly calculate a block group's
checksum field field on 64-bit ssystems.
E2fsck now has a much more understandable error message when the
journal superblock is corrupt and the user declines to fix it.
(Addresses Debian Bug: #768162)
Fixed support of extended timestamps on 64-bit systems.
Updated/fixed various man pages. (Addresses Debian Bugs: #766379,
#761144, #770750, #428361, #766127)
Fixed various Debian Packaging Issues. (Addresses Debian Bug: #825868)
Programming notes
Fixed coverity, sparse, gcc -Wall, and clang warnings/nits.
Fixed Android build makefiles (which was missing a newly added file in
In general, checks on s_creator_os have been removed in favor of
feature flag specific checks; if there is something that can't be
checked via the presence of a feature flag, we will simply check
whether the creator OS is *not* EXT2_OS_HURD which is the one
operating system where there has been extensive abuse of the
s_creator_os flag.
The libmagic libary has been suppressed when running the regression
test suite to avoid false test failures caused by differences between
versions of libmagic (and/or the magic number database).
The tests/test_script progam now accepts the --failed option, which
will run those tests that had previously failed.
Fixed tests build on those systems which require LDFLAGS to be set.
Fixed the regression test suite so it will properly filter out version
numbers with two components (such as 1.43) from log files before
comparing them with the expected golden output.
E2fsprogs 1.43 (May 17, 2016)
Add support for the ext4 metadata checksum, checksum seed, inline
data, encryption, project quota, and read-only features.
Support for the very old, experimental, and never-added-to-mainline
compression feature has been removed.
Mke2fs will now create file systems with the metadata_csum and 64bit
features enabled by default.
The mke2fs program will now support multiple -O options (instead of
just ignoring all but the last -O option).
Mke2fs will now correctly determine the size of a file system and
handle the discard operation correctly when the "-E offset=NNN" is
used. (Addresses Debian Bug: #803629)
The tune2fs program will ask the user for confirmation before starting
dangerous operations if the terminal is available, and it will replay
the journal if necessary.
Add an ext2/3/4 FUSE server
Debugfs can now modify extended attributes and journal transactions.
Debugfs now can properly display and set extended timestamps.
E2fsck will offer to fix extended timestamps that were incorrectly
encoded by older kernels.
Fix miscellaneous MMP bugs in debugfs.
Fix sparse_super2 bugs in mke2fs and resize2fs.
Fix or improve offset support in mke2fs, e2undo, and libext2fs.
The resize2fs command can now convert file systems between 64-bit and
32-bit mode.
Fix potential out-of-bounds memory access in resize2fs when doing a
large off-line file system grow operation.
We now use a new e2undo file format which is much more efficient and
faster than the old tdb-based scheme. Since it so much faster,
e2fsck, tune2fs, debugfs, and resize2fs now also can support using
creating an undo file.
The mke2fs command can now set the error behavior when initializing
the file system (so the administrator doesn't have to issue a separate
tune2fs -e command).
Teach mke2fs to parse a human-readable argument for -i option.
Teach mke2fs to automatically handle creating file systems > 500T by
automatically enable the meta_bg feature.
Mke2fs will now prompt for user verification before rewriting a file
system's superblock using the -S option.
Mke2fs no longer complains if the user tries to create a file system
using the entire block device (e.g., without using a partition). The
minor number convention is not used by all block devices, and it's
quite normal in some circumstances to create a file system on /dev/sdc
instead of /dev/sdc1.
Fix an "mke2fs -d" bug which could create inodes with invalid
extended attribute blocks
E2fsck is now much more paranoid about not freeing or corrupting
critical metadata blocks, such as inode table blocks, even if
corrupted indirect blocks or extent trees point at these blocks.
E2fsck now prints block ranges in pass1b instead of listing all of the
blocks exhaustively.
E2fsck will try to expand the root directory if the lost+found can't
be linked to the root directory. Also, offer to use the root
directory if lost+found can't be created.
E2fsck is now more paranoid handling corrupted extent trees as well as
corrupted journals.
E2fsck can now rebuild extent trees, either (a) to optimize them, (b)
to recover from a corrupted extent tree, or (c) to convert
block-mapped inodes to use extents.
E2fsck now has a readahead mechanism which can significantly speed its
performance, especially on RAID arrays.
E2fsck now has a "yes to all" option which the user can give if she is
tired of answering 'y' to a very large number of questions.
E2fsck will now ignore the badblocks inode if the contents of the
badblocks inode indicate that the portion inode table containing the
badblocks inode is bad. (We must go deeper...)
E2fsck can now correctly fix directory with holes on bigalloc file
E2fsck will now check for extent mapped inodes with no extent header
and clear them if found.
E2fsck now checks to make sure the extended attribute header doesn't
result in the xattr extending beyond the bounds of the inode
Fixed a bug in e2fsck to avoid overrunning a buffer containing jbd2
revoke records if the journal is corrupted.
Fixed a bug in e2fsck which could cause it loop forever if a special
inode has too many invalid block mappings.
Fixed a bug in e2fsck which could cause pass1b/c/d processing to get
confused if an attempt to allocate a block can't find any free space
in the file system.
E2fsck will no longer try to force rewrite blocks located beyond the
file system.
The e2fsck program will no longer update the quota inodes when it is
Fix a bug which in rare cases would cause e2fsck -fD to corrupt an
extent-mapped directory.
Fixed a bug in resize2fs which could lead to resize2fs crashing or a
corrupted file system if the file system is almost completely full
when trying grow a file system and we need to allocate blocks to grow
the block group descriptors.
Fixed a bug in resize2fs which could cause it to get fooled trying to
determinthe the RAID array's stride when flex_bg is enabled.
Fix resize2fs bug that could leave block allocation bitmaps
The dumpe2fs output has been improved so it is cleaner and always fits
within 80 columns. Also added a more easily machine-parsable output
of dumpe2fs.
The mke2fs program can now pre-populate a file system from a directory
hierarchy using the -d option.
The mke2fs program now skips zeroing inode table blocks if they were
already zeroed using the discard feature.
Check to make sure file system features which can not be supported by
HURD are not enabled if the file system is created to be
Added a new e2fuzz command that will fuzz an ext4 image for testing
The debugfs logdump command can now deal with 64-bit revoke tables
correctly. Also, "logdump -O" will print the old log contents (before
the journal was replayed).
The debugfs bmap command can now be used to set or allocate a physical
Fixed a bug so "filefrag -B -e -v" does not return a separate entry
for each block.
The filefrag program now accounts for holes in sparse files created by
the file punch operation as an expected/optimal mapping.
The file I/O functions now correctly handle inodes containing
uninitialized blocks.
Fix a bug in tune2fs so that removing uninit_bg feature on a bigalloc
file system won't result in corrupted block bitmaps.
Updated/fixed various man pages. (Addresses Debian Bug: #798425)
Programmer's Notes
Fixed coverity, sparse gcc -Wall, and clang warnings/nits.
Added Android build files so that e2fsprogs can be built in the
Android source tree.
Reduce the use of libc functions in libext2fs that may not be present
in the boot loader environment, at least for those functions that are
needed by boot loadsers such as yaboot.
Developers can now overide the debugging and optimization flags by
redefining the CFLAGS makefile macro.
The libext2fs library now has support for fallocate.
The mke2fs command will now ask the user for confirmation if block
device or image file contains an existing file system image, and
stdout and stdin are connected to a tty.
The libext2fs library now picks a more intelligent goal block when
doing block allocations.
The libext2fs library will now automatically set the BLOCK_UNINT flag
if all of the blocks in a block group are free, to speed up future
e2fsck and dumpe2fs operations on the file system.
Add two new functions ext2fs_new_range() and ext2fs_alloc_range() to
The ext2fs_zero_blocks() command will use FALLOC_FL_ZERO_RANGE for
file-based images.
The ext2fs_bmap() function supports new flags BMAP_UNINIT and
The ext2fs_new_block2() function will now call the alloc_block hook
before checking fs->block_map.
Support for the MMP feature can now be disabled at compile time.
Added support to manipulate extended attributes to libext2fs.
Added a lot of new regression tests.
Added endian annotations so it's possible to scan e2fsprogs for endian
problems using a static code analyzer.
Fixed memory leaks in libext2fs.
The e2fsck jbd2 handling code has been resynced with the 3.16 kernel.
There is now a script in the contrib directory which automates most of
the resync process.
The build system will now run cppcheck (a static code analysis tool)
via "make C=1"
E2fsprogs 1.42.13 (May 17, 2015)
Fixed a potential buffer overflow while closing a file system in
libext2fs. (CVE-2015-1572, Addresses Debian Bug: #778948)
Fixed a bug which could cause e2fsck to corrupt Hurd file systems.
(Addresses Debian Bug: #760275)
Fixed a deadlock which occurs when using systemd and e2fsck.conf's
logging feature. (Addresses Debian Bug: #775234)
Fixed a bug which could cause programs using libext2's inode table
scanning functions from crashing on certain corrupted file systems.
(Addresses Debian Bug: #773795)
Fixed dumpe2fs so it won't crash if the user doesn't specify a block
device (file system). (Addresses Debian Bug: #764293)
Fixed e2fsck so if it notices unexpected HTREE blocks in pass 2, it
will report the correct directory inode containing the inconsistency.
If e2fsck fails to grow the dir_info structure due realloc(3) not
having enough memory, it will now fail with explanatory message
instead of staggering on failing with a confusing internal error
The tune2fs program will zero out the superblock journal backup
information when removing a journal from a file system.
The mke2fs program now enables the large_file feature by default.
Fixed a bug which could cause badblocks to crash if there are millions
and millions of bad blocks.
Fixed some use-after-free bug in resize2fs and e2fsck.
Fixed a memory leak in tune2fs.
Fixed some bigendian bugs that had crept into both indirect and extent
handling inside libext2fs.
Updated/fixed various man pages.
Update Esperanto, German, and Spanish translations. Added Danish
Programmer's Notes
Fixed coverity, sparce gcc -Wall, and clang warnings/nits.
Clean up some build system problems (build failures with various
configure options, fix Posix portability issues, etc.)
The functions ext2fs_inode_alloc_stats[2]() and
ext2fs_block_alloc_stats[2]() now check the inode and block numbers
passed to them, to avoid crashes caused by buggy callers.
The libext2fs directory iterator will now check for an invalid
directory entry length instead of possibly walking off the end of the
directory buffer.
E2fsprogs 1.42.12 (August 25, 2014)
Fix various e2fsck bugs when trying to repair bigalloc file systems.
E2fsck can now repair a file system with an overly large
s_first_meta_bg field, which had previously caused all e2fsprogs
programs to crash when trying to open such a file system.
Fix e2fsck so that it can correctly fix a number of rare file system
corruptions that were discovered when using a file system fuzzer.
Fix e2fsck so it does not try to write back block group descriptors if
they have not been modified.
Mke2fs program will now place metadata blocks in the last flex_bg so
they are contiguous. This reduces free space fragmentation in a
freshly created file system, as well as allowing mke2fs commands which
request extremely large flex_bg size to succeed.
Mke2fs now creates hugefiles more efficiently (with fewer extent tree
Fix a 32/64-bit overflow bug that could cause resize2fs to loop
forever. (Addresses-Launchpad-Bug: #1321958)
The resize2fs program will now use much less memory when resizing very
large file systems.
Fix a bug which could cause resize2fs to get confused and produce a
corrupted file system when shrinking a file system that had been
previously expanded and converted to use the meta_bg file system
format, but which no longer needs to use the meta_bg file system
format any longer. This typically happened with large (> 16TB) file
systems. (Addresses Debian Bug: #756922)
The e4defrag program will now defrag backwards-allocated files.
Fix tune2fs updating UUID's when manipulating file systems with
external journals (both the file system and journal UUID).
Fix tune2fs so it can remove an external journal for file systems with
a 1k block size.
Add a new debugfs command, "inode_dump", which prints the inode in hex
and ASCII format.
The debugfs's "set_inode_field" will now automatically allocate blocks
for indirect blocks and extent tree blocks.
Fix debugfs's "set_inode_field" so can properly handle
The debugfs "rdump" command will now take multiple source arguments.
Fixed a double close(2) bug in "rdump" and "rdump -p".
Fix debugfs's argument parsing for the freefrag command.
Fix filefrag to properly handle using the FIBMAP ioctl (with -B).
(Addresses Launchpad Bug: #1356496)
Clarified messages that were confusing users in debugfs, e2fsck,
mke2fs, and resize2fs (Addresses Debian Bugs: #758029, #757543,
Dumpe2fs will now complain if extra arguments are given to it.
(Addresses Debian Bug: #758074)
Updated/fixed various man pages. (Addresses-Debian-Bug: #726760)
Update Czech, Dutch, French, Polish, Spanish, Sweedish, Ukrainian, and
Vietnamese translations.
Programmer's Notes
The Unix I/O layer will now use pread[64]/pwrite[64] to reduce the
number of system calls issued.
Fixed profiled build.
The libext2fs library will now more efficiently split an extent tree
index block when appending to an end of a file.
Fixed free block accounting for 64-bit file systems.
Add a new function ext2s_inode_size_set() which takes care of all of
the required feature flag modifications.
The regression tests no longer require the presence of the md5sum
Fix build failure on MIPS platforms on Debian (Addresses Debian Bug:
Fix various Coverity warnings (#1225003, #1229243, #1252003)
E2fsprogs 1.42.11 (July 9, 2014)
Add support so that mke2fs can create hugefiles so that they are
aligned relative to the beginning of the disk, instead of relative to
the beginning of the partition, using the mke2fs.conf configuration
parameter "hugefiles_align_disk".
Fix a bug which causes e2fsck to abort a journal replay on a file
system with bigalloc enabled. (Addresses Debian Bug: #744953)
Add sanity checks so that mke2fs will refuse insanely large flex_bg
counts specified by the -G option. Insanely large flex_bg sizes can
result in a file system which can't be unmounted, or with extremely
pessimal metadata layouts.
The mke2fs program will provide a better metadata layout for
moderately large (but believable) flex_bg counts, such as 133,072.
The mke2fs progam will also check the kernel version number to
determine whether the lazy_itable_init option is supported, so that
lazy inode table initialization can be used even if the ext4 is
compiled as a module which isn't loaded at the time that mke2fs is
Add description of ext4's mount options to the ext4 section 5 man
Improve the chattr man page and clean up the chattr usage message.
E2fsck will now automatically fix a last mount time or last write time
which is in the future in preen mode, instead of aborting the fsck
Mke2fs will now check the file system revision number requested by the
command line, and reject it if it is too large. A file system with an
unsupported revision number will not be accepted by any of the other
file system tools, and this command line option is rarely used, so
let's try to help the user not shoot their own foot off.
The debugfs progam can now set the error count and associated
first_error and last_error fields in the superblock using the
set_super_value command.
Resize2fs will not try to calculate the minimum size of a file system
if it contains errors. Otherwise a very badly corrupted file system
image can cause the minimum size calculation to loop forwever. Since
resize2fs will not allow a file system marked as containing errors to
be resized. It's pointless to calculate the minimum size, so just
skip it.
Fixed a typo in one of mke2fs's error message.
If filefrag runs into an error, it will continue processing the rest
of the files specified on thec ommand line, but then exit with an
error code.
Filefrag now prints some additional new flags (such as
FIEMAP_EXTENT_ENCODED), and print unknown flags as hex values.
Fixed support in filefrag for files with > 2**32 blocks on 32-bit
Fixed a file descriptor leak in debugfs when copying files.
Fixed a regression introduced in 1.42.10 which caused mke2fs to fail
to create file systems larger than 2GB on 32-bit platforms.
(Addresses Red Hat Bugzilla: #1099892, Debian Bug: #752107)
Add Esparanto and Ukrainian translations, and update Czech, Dutch,
French, German, Italian, Polish, Sweedish, and Vietnamese
Fixed various compiler warnings.
Programmer's Notes
The gcc "-checker" option has been long deprecated, so remove support
from e2fsprogs. It was causing a few people to be confused when they
tried enabling the configure option.
Update to the latest version of the config.status and config.rpath
files, as well as newer versions of the autoconf files in aclocal.m4.
Also, move the e2fsprogs-specific macros to acinclude.m4, which allows
people who want to use autoreconf to do so.
Make the use of strptime() function in debugfs to be more portable to
fix regression test failures for FreeBSD and MacOS.
A few miscellaneous changes designed to make life easier for
Fix the f_quota test and some Makefile dependencies if quota support
is not enabled.
Fix cross-compilation support, which got broken in 1.42.10.
(Addresses Debian Bug: #753375)
Delete lib/ext2_types.h on a make clean, and build it as necessary.
Add a debug program used for libext2fs unit tests.
Clean up the tests so that it avoids using GNU-specific behaviour in
mktemp. Make sure the temporary files are cleaned up if the tests are
Add a new ext2fs_close_free() helper function which automatically
takes care of freeing the ext2_filsys structure even if ext2fs_close()
returns an error.
E2fsprogs 1.42.10 (May 18, 2014)
Mke2fs now creates file systems in regular files (which is very often
used when maintaining virtual machine images) without requiring the
user to use the force option. In addition, the mke2fs output has been
made much less verbose and only displays information that users will
be more likely to find useful by default.
Mke2fs now will ask the user to confirm that they want to continue
before wiping out a pre-existing file system, partition table, or LVM
physical volume.
Mke2fs now has the ability to create file systems where all the
metadata is located at the very beginning of the device. This can be
useful for flash devices which have SLC flash at the beginning of the
disk, for FAT compatibility, for example. As part of this, mke2fs and
tune2fs can control the location of the data blocks used by the
journal inode. In addition, the new sparse_super2 feature allows for
even fewer (anywhere from zero to two) backup superblocks.
Mke2fs now uses much less CPU when allocating the blocks used for very
large file systems.
Mke2fs can now support creating a file system at an offset. This can
be useful when creating a disk image for virtual machines (Addresses
Debian Bug: #497984)
Previously, e2fsck had a number of very serious bugs when checking a
file system wich used the new the quota file system option (where the
quota inodes were stored in hidden inodes) and the quota inode was
inconsistent with the actual usage data. This problem was documented
in These problems have
been fixed in 1.42.10, so the quota should be safe to use with
e2fsprogs 1.42.10.
Fixed in a bug in resize2fs which could cause shrink operation fail in
the unlikely situation when the inode table needs to be moved to a
location before the current location.
Resize2fs now has a much more accurate (and less conservative)
estimation of how far the file system can be shrunk. This allows a
mostly empty filesystem which is a few terabytes, to be shrunk to a
few megabytes in a single resize2fs -M operation.
E2fsck will now force a full file system check if there are any file
system inconsistencies detected in the super block.
The filefrag program will now display hte shared extent flag, which is
used by file systems such as btrfs.
If the number of inodes in the file systems is larger than the time
that file sytem was created (as measured by the number of seconds
since January 1, 1970) e2fsck would print a scary (but otherwise
harmless) warning of file system corruption for each inode in the
orphan list. This false positive has been fixed.
The e4defrag program has been fixed so it will no longer refuse with
filesystem with the 64-bit or the bigalloc feature enabled.
The logsave progam will print a much less scary message which could
lead users to believe something has gone very wrong with e2fsck exits
with a non-zero exit status (since this is normal after e2fsck has
automatically fixed a file system corruption during a preen
operation). (Addresses Debian Bug: #468821)
When creating a file system which is larger than 16TB, the
resize_inode option must be disabled -- since the resize_inode simply
doesn't support reserving metadata block numbers which is larger than
32 bits. The mke2fs program does this automatically if the file
system size is determined automatically. It will now also do this if
the file size is specified explicitly.
Fixed bugs associated with resize2fs and shrinking bigalloc file
The e2fsck program will no longer try to add a UUID on a mounted file
system with checksums enabled, since this could leave the file system
checksums broken.
Tune2fs will allow the removal of an external journal from file system
which is marked as needing the journal replayed when the force ("-f")
option is given twice. (Addresses Debian Bug: #559301)
Tune2fs will no longer support enabling sparse_super if the meta_bg
file system feature is enabled, since it could result in data loss.
In practice, all modern file systems have sparse_super is enabled, so
it's not worth trying to change how tune2fs handles enabling the
sparse_super feature.
Fixed support for 1k block file systems with the meta_bg feature.
When the superblock is corrupt, e2fsck can't figure out the location
of the alternate superblock. Unfortunately, the routine that
calculates the location of the alternate superblock uses 8193 if it
can't figure this out, so the message printed by e2fsck always
suggests using "e2fsck -b 8193". This message has been fixed to
suggest both the superblock location of 8193 and and 32768.
(Addresses Debian Bug: #719185)
The lookback mount detection code that was introduced in 1.42.9 wasn't
actually compiled in due to an autoconf oops, so it's fixed now in
1.42.10. (Addresses Debian Bug: #497984)
A bug introduced in 1.42.9 would cause debugfs to print two error
messages if it found an error while parsing a user-supplied block
number. This has been fixed in 1.42.10.
Update Czech, Dutch, French, German, Polish, Spanish, Sweedish, and
Vietnamese translations. (Addresses Debian Bug: #703048)
Updated/fixed various man pages. (Addresses Debian Bugs: #719189,
Fixed various Debian Packaging Issues. (Addresses Debian Bug: #718725)
Programmer's Notes
Fixed a lot of coverity, sparce gcc -Wall, and clang warnings/nits.
Allow the location of pkg-config files to be specified independent of
the libdir location via a makefile variable.
Fixed not to complain when cross-compiling and the
sizes of types are different between the target architecture and the
architecture of the build system
Allow the regression test suite to work correctly on systems which do
not have the "truncate" or "mksawp" programs.
Allow e2fsck to build correctly on systems (such as Android) that do
not have the signal.h file.
E2fsprogs now has code coverage testing which can be enbled using
"configure --enable-gcov".
The libe2p.h header file can now be used included by C++ programs.
The profile/config file used by e2fsck and mke2fs will interpret
numbers with a leading 0 character to mean that they should be
interpreted as an octal integer.
The extent handling functions in libext2fs have been improved so they
have proper rollback when there is an error splitting an extent. Also
fix a number of bugs when punching holes in files, and fix an
off-by-one bug when inserting an extent into an empty inode.
The libext2fs library now handles the support of BLOCK_UNINIT by
clearing the portion of block bitmap when it is loaded, instead of
when it is used. This reduces the chances of bugs, and and simplifies
the code. It also means that debugfs will properly show that blocks
in uninitialized block groups as being unused when using the testb
The e4defrag program will try to use fadvise64 or posix_fadvise64() if
it is present, which allows 64-bit offsets on 32-bit systems.
E2fsprogs 1.42.9 (December 28, 2013)
Mke2fs will detect an attempt to create a file system on a loop
mounted file and complain without the -FF option. Also fixed mke2fs
so it allows the creation of a file system on a mounted device with
two -F options, as documented in the man page, instead of three -F
Fixed a large number of bugs in resize2fs, e2fsck, debugfs, and
libext2fs to correctly handle bigalloc and 64-bit file systems. There
were many corner cases that had not been noticed in previous uses of
these file systems, since they are not as common. Some of the bugs
could cause file system corruption or data loss, so users of 64-bit or
bigalloc file systems are strongly urged to upgrade to e2fsprogs
The tune2fs program will now not allow changing the uuid on a mounted
file system which has the uninit_bg feature enabled. This avoids a
nasty race where the kernel and tune2fs are both retrying rewrite the
group descriptors at the same time, with different ideas about what
the UUID should be.
When e2fsck is rehashing an extent-mapped directory, it's possible
(although very rare) that an extent block will need to be allocated;
fix e2fsck to make sure that the block gets marked as used.
Mke2fs will now properly set the LARGE_FILE feature when creating a
journal >= 2GB --- which can happen when using 64k block size.
Fixed debugfs so that its freei command will correctly handle a request
to free a range of consecutive inodes.
Fixed 2fsck so it will not erroneously complain that an external journal
is invalid if it is exactly 2**32 blocks.
Fixed e2fsck so it won't try checking for, and adding, a missing
lost+found directory when running in read-only mode.
Fixed e2image so that progress information won't get leaked to stdout.
(Addresses Red Hat Bugzilla: #1327329)
Fixed e2image to avoid some buffer overruns which would cause it to when
creating a "standard (non-raw, non-qcow2) image file. Standard
e2image files are actually very rarely used, so we didn't notice when
the changes to enable the qcow2 format broke this e2image mode.
Fixed mke2fs so that the extended option "-E resize=NNN" will not turn
on the resize_inode feature when the meta_bg feature is set, since
these two features can not be set at the same time.
Fixed tune2fs so that when it disables the quota feature, it updates all
of the backup superblocks.
Fixed dumpe2fs that would cause it to abort when run using an image file
when trying to print the journal information (which is not present in
an e2image created image file).
Fixed a potential integer overflow in e2reefrag.
(Addresses-Debian-Bug: #718205)
Enhance debugfs so that when copying a sparse file from a native file
system into the file system image using the "write" command, it will
create a sparse file into the destination file system.
Enhanced debugfs so it can support a command line which is up to 8k
E2image will refuse (unless the -f option is specified to force the
issue) to create a raw or qcow image using a mounted file system,
unless the -f option is specified to force the issue.
E2image has been optimized for using it to efficiently copy a file
system by only copying the allocated blocks, by using the options -ra.
New options (-o and -O) have been added so that a source and
destination offset can be given. The -p option will print progress
information so the user will know how far along the copy is going.
And finally, the new option -c is useful for updating a file system on
an SSD, by avoiding unnecessary writes. E2image can also shift a file
system image by doing an in place move.
Fix a regression introduced in 1.42.8 which would cause e2fsck to
erroneously report uninitialized extents past the EOF (as determined by
i_size) to be invalid.
Fixed resize2fs so under a corner case when an inode has a complex
extent tree, it will not corrupt an interior node in the extent tree.
Fixed resize2fs which would sometimes corrupt a file system when
shrinking a file system to a minimum size using resize2fs -M.
(Addresses Debian Bug: #660793)
Fixed resize2fs so that it will relocate inode table blocks if this
becomes necessary when shrinking the file system.
Fixed resize2fs and e2fsck so they will not crash when hit a failure
while operating on a file system with the MMP feature enabled.
Fixed a bug in debugfs which caused it create an invalid inode when
trying to write a zero-length file.
E2fsck will no longer crash if it tries to delete an invalid
extent-mapped symlink.
E2fsck will no longer crash if it comes across an directory which is
larger than 2GB (which is not allowed in valid file systems).
Fixed debugfs's help texts to fully document all options and otherwise
be more helpful.
Updated/fixed various man pages. (Addresses Debian Bugs: #586218,
#669730, #698076)
Fixed various Debian Packaging Issues (#698879, #721365)
Programmer's Notes
Fix sparse, gcc -Wall and clang nits.
Update config.{guess,sub} to the latest version
Fixed various memory and file descriptor leaks on various error paths,
as well as some missing error return checks, which were found using
Run sparse against source files when building e2fsprogs with 'make
C=1'. If instead C=2, it configures basic ext2 types for bitwise
checking with sparse, which can help find the (many many) spots where
conversion errors are (possibly) happening.
Allow the regression test to be run in chrooted environments where
/etc/mtab might be missing.
The ext2fs_punch() function, which was introduced in 1.42, was broken
in many ways, but this was never noticed since it wasn't used for
anything significant. Some of the bugs include failing when trying to
punch a completely sparse file, failing when punching an extent-mapped
inode when the starting block was at the beginning of the inode, and
not being able to punch a single block (where start_blk == end_block).
It also didn't handle being passed an invalid, too-large ending block
number, and didn't handle properly terminate at the right place when
operating on an indirect-mapped inode.
Fixed some minor typo's in the error catalog for libext2fs.
Fixed ext2fs_file_set_size2() so that if it truncates an inode by
setting the file size, to zero the rest of the block to the end of the
file, so that if an ext4 FUSE driver tries to extended the file, that
we don't avoid stale data from being returned.
Fixed ext2fs_bmap() to disallow clients from trying to map or set
logical blocks which are larger than what an extent-mapped or indirect
block-mapped inode can allow.
If debugfs (or some userspace program using libext2fs) creates a file
which is larger than 2GB, make sure the large_file feature flag gets
Fix a bug in ext2fs_link() where if there is multiple empty slots in the
directory which are large enough, the directory entry could get
inserted more than once in the directory.
If quota support is disabled (which is the default), make sure that
all traces of the quota support is removed from usage messages, man
pages, and tune2fs must not be able to enable the quota file system
feature. (Addresses Red Hat Bugzilla: #1010709)
The ext2fs_file_write() now updates i_size on a successful write,
instead of only updating i_size wen the file is closed via
Added a shell script, which uses debugfs to populate
an ext2/3/4 file system image from a given directory. It is similar
to the genext2fs program, but it supports ext3 and ext4 file system.
Add changes to the libext2fs library to support block group
descriptors larger than 64 bytes (for future compatibility).
Fixed an off-by-one bug in ext2fs_file_set_size2() so that it will not
leave an extra block in the file when truncating the file down to
The html version info pages are now built using makeinfo --html
instead of the unmaintained and now-obsolete texi2html program.
E2fsprogs 1.42.8 (June 20, 2013)
As a part of mke2fs's option parsing cleanup, the use of the -R option
will give a warning that it is depreated (it has been so documented
since 2005) and -E should be used instead.
Mke2fs will not give warnings about the bigalloc and quota options in
quiet mode.
If an invalid journal size is given to mke2fs, it will now complain
and exit sooner.
Debugfs was erroneously giving spurious error messages for certain
extent_inode subcommands which take arguments (split_node,
replace_node, and insert_node). This has been fixed.
Fix the parsing of the 's' (sectors) in parse_num_blocks2, which among
other programs is used by mke2fs.
Change mke2fs so that it does not set the root directory to the real
uid/gid of the mke2fs process. Add the extended option root_owner to
override this behavior.
Fix resize2fs when shrinking file systems to make sure that bitmap
blocks aren't left outside the bounds of the shrunken file system.
This could happen with flex_bg file systems that were grown using
the old online resizing algorithm.
E2fsck will now detect and repair corrupted extent trees which contain
invalid extents at the end of the extent tree leaf block.
E2fsck will now longer complain about zero length extended attribute
Fix a regression introduced in e2fsprogs v1.42 which caused e2image -s
to crash.
Add safety check so tune2fs will not attempt to set the inode size to
be larger than the block size.
Fix e2fsck so it can check a read-only root file system with an
external journal. (Addresses Debian Bug: #707030
Fix off-line resizing of file systems with flex_bg && !resize_inode
(Addresses Debian Bug: #696746)
Fix e2image with large (> 32-bit) file systems (Addresses Debian Bug:
Enhance chattr to allow clearing the extent flag if the kernel allows
migrating extent based files to use indirect blocks.
Update German translation.
Updated/fixed various man pages. (Addresses Debian Bugs: #712429,
#712430, #707609)
Fixed various Debian Packaging Issues (Addresses Debian Bug #708307)
Programmer's Notes
Use secure_getenv() in preference to __secure_getenv().
Optimize CPU utilization of ext2fs_bg_has_super().
Fix ext2fs_llseek() on 32-bit i386 systems to work correctly when
SEEK_CUR is used with large files.
The ext2fs_read_inode_full() function will no longer use
fs->read_inode() if the caller has requested more than the base 128
byte inode structure and the inode size is greater than 128 bytes.
Fix build failure with --enable-jbd-debug.
Clean up filtering of outputs for the regression tests by using a
common sed script.
Fix gcc -Wall and clang nits.
E2fsprogs 1.42.7 (January 21, 2013)
Add warnings to mke2fs, resize2fs, and tune2fs that the bigalloc and
quota features are still under development. For more information
please see:
Add some new options to filefrag from Lustre's patches to e2fsprogs:
* add -k option to print extents in kB-sized units (like df -k)
* add -b {blocksize} to print extents in blocksize units
* add -e option to print extent format, even when FIBMAP is used
* add -X option to print extents in hexadecimal format
Fix resize2fs so that it can handle off-line resizes of file systems
with the flex_bg feature but without a resize_inode (or if we run out
of reserved gdt blocks). This also fixes a problem where if the user
creates a filesystem with a restricted number of reserved gdt blocks,
an off-line resize which grows the file system could potentially
result in file system corruption.
Fix a resize2fs bug which could cause it to corrupt bigalloc file
systems when doing an off-line resize.
Further optimize resize2fs so it doesn't use quite as much CPU when
resizing very large file systems.
Fixed 32-bit overflow bugs which could cause resize2fs to fail and
possibly corrupt the file system while resizing 64-bit file systems.
Fix a bug in mke2fs where parsing "-E resize=NNN" will result in a
mke2fs crash due to a divide-by-zero if the 64bit file system feature
is enabled.
Add better error checking to mke2fs to check for invalid parameters
when creating bigalloc file system.
When creating bigalloc filesystems, the -g option to mke2fs will now
specify the number of clusters per block group.
Add to debugfs the functionality to corrupt a specific file system
block via the "zap_block" command.
Add to debugfs the functionality to print out a hex dump of a block in
the file system via the "block_dump" command.
Add to debugfs the functionality to manipulate the extent tree
directly via the "extent_open" command.
Fixed debugfs's mknod command so that it updates the block group
Fix e2fsck so it can detect and fix inconsistencies in the interior
nodes of an inode's extent tree.
Fix a potential memory corruption failure in e2fsck's error path if
the call to ext2fs_open2() fails.
Fix e2fsck if its logging function is enabled in e2fsck.conf, and the
resulting file name for the log file is longer than 100 bytes, that it
properly handles this situation instead of crashing.
E2fsck will now report the amount of memory that it attempted to
allocate when a memory allocation request fails, to make it easier to
track down the problem.
Fix mke2fs's handling of the mmp_update_interval option. (Addresses
Lustre Bug: LU-1888)
E2image can now include all data blocks in the e2image output file
when the user specifies the -a option.
If e2fsprogs is compiled without --enable-quota, make sure that
tune2fs can not turn on the feature for new-style quota support, since
afterwards, none of the e2fsprogs tools will be willing to touch that
file system.
Optimize e2fsck's so that it uses much less CPU for large file
systems. This can result in significant speedups, especially on
CPU-constrained systems. This was primarily done by optimizing
libext2fs's bitmap functions. (Addresses Google Bug: #7534813)
Fix debugfs's htree command so that all its messages are sent through
the pager.
Fixed debugfs's "dump_file" and "cat" functions work correctly
on file systems whose block size is greater than 8k.
Fix e2freefrag so it works on 64-bit file systems, and so it uses much
less memory. (Addresses Google Bug: 7269948)
Update the spd_readdir.c file in the contrib directory to include some
additions which were made in 2008 that didn't get folded into the
version which we checked into the e2fsprogs source tree. These
enhancements include thread safety, support for readdir64_r(), and
safe_getenv() support in case is used for setuid binaries.
Update Czech, Dutch, French, German, Polish, Sweedish, and Vietnamese
Add a command to debugfs to create symlinks.
Document the bigalloc feature in the mke2fs man page. (Addresses
Debian Bug: #669730)
Programmer's Notes
Fix gcc -Wall nits.
Fix a spelling typo in the libext2fs texinfo documentation.
Change the output from "make check" so that tools such as emacs's "M-x
compile" does not mistake the output as containing a compiler error.
Export two new functions from libext2fs: ext2fs_extent_node_split()
and ext2fs_extent_goto2().
The ext2fs_extents_fix_parents() was fixed so it does not modify the
location of the extent handle if its current location is at an
interior node, rather than a leaf node of an inode's extent tree.
Add a regression test to assure that e2fsck can correctly fix an
inconsistent interior node in an inode's extent tree.
The ext2fs_{mark,unmark,test}_block_bitmap_range2() functions now
correctly support bigalloc file systems which use store block usage
information in units of clusters.
Fixed the help text in the configure script for --enable-quota.
The m68k-specific bitops code has been removed since they were
incorrectly treating bit numbers with the high bit set as signed
integers. Furthermore, modern compilers do a good enough job
optimizing the generic code there is no point in having the m68k
specific asm statements.
Fixed how we link the test programs so they always use the static
libraries, so that we test using the libraries which we have just
Update config.guess and config.sub to the latest versions from the GNU
Fixed the com_err.texinfo file so that it can produce a valid
postscript/pdf printed output.
Add a regression test which checks debugfs's ability to create
symlinks, named FIFO's, and device nodes.
Add a function ext2fs_symlink(), which creates symlinks to the
libext2fs library.
Add debugging code so we can test old kernel interfaces for online
resize to resize2fs. This backwards compatibility checking is keyed
off of the RESIZE2FS_KERNEL_VERSION, which is designed to allow us to
test the functionality of the kernel's older resize ioctls without
needing to install an old version of resize2fs, and to also test a
modern resize2fs's ability to work with older kernels without having
to install an older version of the kernel.
E2fsprogs 1.42.6 (September 21, 2012)
When mke2fs creates file systems with lazy itable initialization, the
progress updates for writing the inode table happens so quickly that
on a serial console, the time to write the progress updates can be the
bottleneck. So mke2fs will now only update its progress indicators
once a second.
Resize2fs will skip initializing the inode tables if the kernel
supports lazy_itable_init, which speeds up growing off-line growth of
uninit_bg file systems significantly. Resize2fs will now also
correctly set the itable_unused field in the block group descriptor to
speed up the first e2fsck after the file system is grown.
Resize2fs has been fixed so that on-line resizing of meta_bg file
systems work correctly. This is needed to grow file system which are
larger than 16T.
Resize2fs will now correctly handle resizing file systems to 16TB on
32-bit file systems when "16TB" is specified on the command line.
Fix mke2fs so that it will be careful to set the reserved blocks ratio
larger than 50%; this can happen when creating small file systems and
when the last block group is dropped because there are not enough
blocks to support the metadata blocks in the last block group.
Fixed spelling mistake in debugfs's help message.
Fixed a potential seg fault in e2fsck when there is an I/O error while
reading the superblock.
Fixed various Debian Packaging Issues (Addresses Debian Bug #677497)
Updated/fixed various man pages. (Addresses Sourceforge Bug:
Programmer's Notes
The configure option --enable-relative-symlink was broken so that it
needed to be --enable-symlink-relative-symlinks. We will support both
for at least two years, but then the worng configure option will be
Fixed a regression introduced in 1.42.5 so the link order for
e2fsprogs' libraries will be correct for both static and shared
linking. (Addresses Sourceforge Bug: #3554345)
Add support for e2fsprogs to be compiled using clang/LLVM.
Fix portability problems on non-Linux systems: avoid compile failures
on systems that don't have malloc.h
Fix f_mmp regression test suite so that debugfs gets killed if the
test is interrupted.
E2fsprogs 1.42.5 (July 29, 2012)
Fixed a bug with mke2fs where if there is only 8 inodes per block
group, the calculation of the number of uninitialized inodes in the
first block group would go negative. This resulted in "mke2fs -N 256
-t ext4 /tmp/foo.img 256m" trying to write so many blocks that /tmp
would run out of space. (Addresses Sourceforge Bug: #3528892)
Fixed a bug in how e2fsck would uniquify directory entry names.
(AddressesSourceforge Bug: #3540545)
Previously, e2fsck would only allow a mounted file system to be
checked if it was the root file system and it was mounted read-only.
Now it will allow any file system mounted read-only to be checked if
the -f option is specified. This makes it easier to test how e2fsck
handles checking file systems which are mounted without having to test
on the root file system.
Fixed a problem if e2fsck where if the root file system is mounted
read-only, e2fsck would not clear an error indication in the journal
superblock. Combined with a kernel bug, this would cause the e2fsck
to check the file system after every single boot.
The e4defrag program can now handle device symlinks, such as
/dev/mapper/testvg-testlv, instead of insisting on a less
human-friendly name such as /dev/dm-2. (Addresses Red Hat Bugzilla:
Fixed filefrag so it will not crash with a segfault on files from a
virtual file system such as /proc. (e.g., "filefrag
Fixed filefrag so that it correctly reports the number of extents.
(Addresses Red Hat Bugzilla: #840848)
Fixed a file descriptor leak in logsave which could cause it to hang.
(Addresses Debian Bug: #682592)
Fixed e2fsck so that the file system is marked as containing an error
if the user chooses not to fix the quota usage information.
Fixed tune2fs so that it correctly removes the quota feature when the
last quota inode is removed.
Fix tune2fs so that after removing a quota inode, the block bitmap is
updated; otherwise, e2fsck would complain after running 'tune2fs -O
^quota <dev>'.
Fix tune2fs so that when converting a file system from using legacy
quota files to the new quota file system feature with hidden quota
files, the accounting for these files is handled correctly so that
e2fsck doesn't complain.
Improved e2fsck's verbose reporting statistics, and allow the more
verbose reporting to be enabled via /etc/e2fsck.conf.
Fixed various Debian Packaging Issues (Addresses Debian Bug #678395)
Updated/fixed various man pages. (Addresses Debian Bugs: #680114)
Programmer's Notes
Fixed portability problems on other operating systems (e.g., Hurd and
FreeBsd) caused by the attempted inclusion of <sys/quota.h>.
Make sure that shared libraries link with the shared libraries built
in the build tree, instead of the system provided libraries.
Previously, libraries and executables were linked with the system
libraries if present, and possibly using static archives instead of
shared libraries. This was also problematic since if is
linked with a static libcom_err.a from system, the build system would
attempt to link without -lpthread. (Addresses Sourceforge Bug:
E2fsprogs 1.42.4 (June 12, 2012)
Fixed more 64-bit block number bugs (which could end up corrupting
file systems!) in e2fsck, debugfs, and libext2fs.
Fixed e2fsck's handling of the journal's s_errno field. E2fsck was
not properly propagating the journal's s_errno field to the superblock
field; it was not checking this field if the journal had already been
replayed, and if the journal *was* being replayed, the "error bit"
wasn't getting flushed out to disk.
Fixed a false positive complaint by e2fsck if all of the extents in
the last extent tree block are uninitalized and located after the end
of the file as defined by i_size.
The dumpe2fs will now display the journal's s_errno field if it is
non-zero, and it will also display the journal's 64-bit feature flag
if present.
Fix e2fsck so that it always opens the device file in exclusive mode
when it might need to modify the file system, and never if the -n
option is specified. (Previously, there were a few corner cases where
it might get things wrong in either direction.)
E2fsck now correctly truncates or deallocates extent-mapped inodes on
the orphan list. The root cause was a bug in libext2fs's block
iterator which could end up skipping an extent when the last block in
an extent is removed, causing the current extent to be removed from
the extent tree.
E2fsck now correctly sets the global free block and inode counts when
truncating or removing inodes on the orphan list in preen mode.
Previously, it would leave these values would be set incorrectly,
which is largely a cosmetic issue since the kernel no longer pays
attention to those fields, but it can cause spurious complaints in
subsequent e2fsck runs.
Fix i_blocks accounting when the libext2fs library needs to add or
remove an extent tree block on bigalloc file systems.
The lsattr and chattr programs now support the No_COW flag for the
benefit of btrfs.
Debugfs now interprets date strings of the form @ddd as ddd seconds
after the beginning of the epoch. This is handy when setting an inode
number into the d_time field when debugging orphan list handling.
Fix a precedence bug with built-in quota support which might result in
e2fsck paying attention to the quota inode field even if the built-in
quota feature flag is not set. Fortunately, in practice that
superblock field should be zero for non-built-in quota file systems,
so it's unlikely this bug would have caused problems.
Updated/fixed various man pages. (Addresses Debian Bugs: #674453,
Programmer's Notes
The regression test suite can now run the integration tests in the
tests directory in parallel, via "make -jN check".
Add new test, f_zero_extent_length which tests e2fsck's handling of
the case where all of the extents in the last extent tree block are
uninitialized extents after i_size.
Add a new test, f_jnl_errno, which checks handling of an error
indication set in the journal superblock.
Fix the test f_jnl_64bit so that it properly checks e2fsck's handling
of a 64-bit journal.
Add two tests, f_orphan_indirect_inode and f_orphan_extent_inode which
tests e2fsck's handling of orphan inodes in preen mode, and truncation
of extent inodes on the orphan list.
Fixed more OS X portability issues.
E2fsprogs 1.42.3 (May 14, 2012)
Fix a bug in the Unix I/O manager which could cause corruption of file
systems with more than 16TB when e2fsprogs is compiled in 32-bit mode
(i.e., when unsigned long is 32-bits). Also fix a bug which caused
dumpe2fs to incorrectly display block numbers > 32-bits.
Improve the support for integrated quota files (where quota is a first
class supported feature using hidden files in the ext4 file system).
Previously the quota file was getting rewritten even when it was not
necessary, and e2fsck would erroneously try to hide quota files which
were already hidden.
Quiet complaints in e2fsck when the total free blocks or inodes are
incorrect in the superblock after an system crash, since we don't
update nor depend on the superblock summaries at each commit boundary.
Fixed a regression introduced in 1.42.2 which would cause applications
outside of e2fsprogs which did not pass the EXT2_FLAG_64BIT (and so
would were still using the legacy 32-bit bitmaps) to crash. This was
due to missing 32-bit compat code in side the function
ext2fs_find_first_zero_generic_bmap(). (Addresses Red Hat Bugzilla:
Fix a bug which would cause mke2fs to fail creating the journal if
/etc/mtab and /proc/mounts are missing. (Addresses Sourceforge Bug:
Updated/fixed various man pages.
Update Czech, Dutch, French, German, Polish, Sweedish, and Vietnamese
Fixed various Debian Packaging issues.
Programmer's Notes
Change the nonsensically wrong types in the function signature of the
inline function ext2fs_find_first_zero_block_bitmap2(). This was
caused by a cut and paste error; fortunately no code in e2fsprogs used
this inline function, and there are any users of this functions
outside of e2fsprogs.
Add support for systems which have valloc(), but which do have
posix_memalign() nor memalign() (such as MacOS 10.5).
Refactor and clean up the allocation of aligned buffers for Direct I/O
support. Previously some allocations were requesting a greater
alignment factor that what was strictly necessary. Also optimize
reading and writing bitmaps using Direct I/O when the size of the
bitmap did not fully cover the file system blocksize.
Reserve the codepoints for the INCOMPAT features LARGEDATA and
Improved the regression test suite by adding some new integration
tests (f_jnl_32bit, f_jnl_64bit) which detect breakage of the on-disk
jbd2 format, as well as f_eofblocks which tests the new handling of
uninitialized and initialized blocks beyond i_size. Also add a new
unit test which verifies 32-bit bitmaps support and the new
find_first_zero primitives.
Add a few dependencies to fix parallel (make -j) builds.
Removed bash'isms which were breaking the regression test suite on
systems where /bin/sh is not bash.
The config.guess and config.sub have been updated to the 2012-02-10
Fix a portability problem caused by assuming the present of mntent.h
means that setmntent() exists. Instead, explicitly test for this in
the configure script.
If the sys/signal.h header file does not exist, don't try to include
it, since it's not available on all systems.
Add support for systems that do not support getpwuid_r()
The configure script now supports a new option,
--enable-relative-symlinks, which will install relative symlinks for
the ELF shared library files. (Addresses Sourceforge Bug: #3520767).
When building BSD shared libraries make sure the LDFLAGS variable is
passed to the linker. Fixing this allows, for example, e2fsprogs to
be built in 32-bit mode on Mac OS X Lion (Addresses Sourceforge Bug:
Fix gcc -Wall nitpicks
E2fsprogs 1.42.2 (March 27, 2012)
The resize2fs program uses much less CPU and is much faster for very
large file systems. (Addresses Debian Bug: #663237)
The seti and freei commands in debugfs can now take an optional length
argument to set and clear a contiguous range of inodes.
E2fsck will now make explicit checks for the EOFBLOCKS_FL, since we
plan to remove support for it from the kernel file system driver. It
really wasn't very useful and was causing more problems than it
solves. Since e2fsck will complain if inodes that should have
EOFBLOCKS_FL do not have the flag set, we are going to remove this
check from e2fsprogs first, and then only remove the flag from the
kernel much later.
The mke2fs program can now use direct I/O via "mke2fs -D". This will
slow down the mke2fs, but it makes it more polite on a loaded server
by limiting the amount of memory that gets dirtied by mke2fs when it
is using buffered I/O.
E2fsck was needlessly closing and re-opening the file system as a side
effect of adding Multiple Mount Protection (MMP). This isn't
necessary for non-MMP file systems, so drop it.
Print errors returned by ext2fs_open2() and ext2fs_check_desc() so we
can more easily diagnose memory allocation failures caused by
insufficient memory. E2fsck will now abort if there are memory
allocation failures when the file system is initially opened and
during the block group descriptor checks. (Addresses Google Bug:
If there are incorrect block group checks, e2fsck will now report the
incorrect and corrected checksum values.
The e2fsck progam can now write log files containing the details of
the problems that were found and fixed directly, via configuration
parameters in /etc/e2fsck.conf.
Added the ability to limit the number of messages reported by e2fsck
for a given problem type. This avoids a potential bottleneck if there
is a serial console which can cause a boot sequence to take a long
time if e2fsck needs to report many, many file system errors.
The dumpe2fs, debugfs, and tune2fs now use rbtree bitmaps, which cause
them to use much less memory for large file systems.
The dumpe2fs program will now print the expected block group checksum
if it is incorrect. This helps to diagnose problems caused by
incorrect block group checksums.
E2fsck now checks for extents with a zero length, since the kernel
will oops if it comes accross such a corrupted data structure. (See
E2fsck has a number of bugs relating to discard that have been fixed.
(1) Fixed a bug which could cause e2fsck to discard portions of the
inode table which were actually in use. (2) E2fsck will now avoid
using discard if the block device doesn't zero data on discard, since
otherwise this could cause problems if the file system gets corrupted
in the future. (3) E2fsck will now avoid using discard when it is run
in read-only mode. (4) Fixed a bug which caused e2fsck to not issue
discards in the last block group.
E2fsck's CPU utilization in pass 5 has been optimized, which will
speed up e2fsck slightly.
E2image will now skip copying uninitialized bitmap and inode table
Fixed mke2fs -S so it does not corrupt the first block group's
E2fsck will now check the new sysfs interface to determine if we are
using the battery or AC mains. (Addresses SourceForge Bug: #3439277)
Updated/fixed various man pages. (Addresses Debian Bug: #665427)
Fixed various Debian Packaging issues. (Addresses Debian Bug: #665885)
Programmer's Notes
Fixed various portability issues for non-Linux systems, particularly
MacOS X, as well as Linux systems running with the just-released glibc
Fix file descriptor leak in ext2fs_close() if the file system with
uninit_bg is opened read/only with a backup superblock. (Addresses
SourceForge Bug: #3444351)
Fixed an invalid return in a non-void function in the quota code.
(Addresses SourceForge Bug: #3468423)
Fixed the debian rules file so that the calls to dpkg-buildflags works
when the shell is dash.
The debian package build now uses V=1 so that there is more
information about potential build failures in debian buildd logs.
If the uninit flags get cleared by functions such as
ext2fs_new_inode() or ext2fs_new_block2(), we now make sure the
superblock is marked dirty and the block group descriptor checksum is
updated if necessary.
The debian rules file will now try to load debian/rules.custom of it
exists. This flie can skip various builds for speed reasons if there
is no need for the e2fsck-static or udeb packages. Available
customizations in the rules file includes SKIP_STATIC=yes,
In addition, if the file misc/ exists in the
source tree, it will be used instead of the standard misc.conf file in
the upstream sources. This makes it easier for Debian-derived systems
to distribute a custom mke2fs.conf file without having to worry about
merge issues if future versions of e2fsprogs makes changes in the
upstream default version of mke2fs.conf.
E2fsprogs 1.42.1 (February 17, 2012)
The mke2fs and e2fsck now use significantly less memory when creating
or checking very large file systems. This was enabled by adding
extent-based bitmaps which are stored using a red-block tree, since
block and inode allocations tend to be contiguous.
The command mke2fs -S is used as a last ditch recovery command to
write new superblock and block group descriptors, but _not_ to destroy
the inode table in hopes of recovering from a badly corrupted file
system. So if the uninit_bg feature is enabled, mke2fs -S will now
set the unused inodes count field to zero. Otherwise, e2fsck -fy
after using mke2fs -S would leave the file system completely empty.
Since mke2fs recognizes mke3fs in argv[0] to mean "mkfs.ext3", also
honor "mke4fs" to work the same as "mke2fs.ext4", since RHEL5 has
installed an mke2fs binary using that name.
The usage and help messages for the -G, -t and -T options in mke2fs
have been fixed.
If e2fsck needs to use the backup group descriptors, the
ext2fs_open2() function clears the UNINIT bits to ensure all of the
inodes in the file systems get scanned. However, the code which reset
the UNINIT flags did not also recalculate the checksum, which produced
many spurious (and scary) e2fsck messages. This has been fixed by
resetting cheksums when the UNINIT bits are cleared.
Relax a check in e2fsck which required that the block bitmap to be
initialized when the inode bitmap is in use. This will allow us to
eventually eliminate code from the kernel which forcibly initialized
the block bitmap when the inode bitmap is first used, requiring an
extra journal credit and disk write. (Addresses Google Bug: #5944440)
Make sure rdebugfs (which may be installed setuid or setgid disk) does
not honor environment variables if euid != uid or egid != gid.
Debugfs's ncheck command has been optimized and now is much more
robust with faced with corrupted file systems. The ncheck command
also now has a -c option which will verify the file type information
in the directory entry to see if matches the inode's mode bits. This
is extremely useful when trying to use debugsfs to determine which
parts of the file system metadata can be trusted.
E2image will try to use ftruncate64() to set the i_size for raw
images, instead of writing a single null byte. This avoid allocating
an extra block to the raw image, for those file systems and/or
operating systems that support this. (Linux does.) In addition, fix
a logic bug that caused the file to not be properly extended if the
size of the last hole was exactly an multiple of a megabyte.
Fixed a bug in resize2fs where for 1k and 2k file systems, where
s_first_data_block is non-zero, this wasn't taken into account when
calculate the minimum file system size for use with the -M option.
Fixed the badblocks program to honor the -s flag when in read-only -t
mode. (Addresses Debian Bug #646629)
Update Czech, Dutch, French, Polish, and Sweedish translation from the
Translation Project.
Fixed various Debian Packaging issues so that dpkg-buildflags is used
if present, which allows e2fsprogs to be built with security hardening
flags. (Addresses Debian Bugs: #654457)
Programmer's Notes
Fix a bug in ext2fs_clear_generic_bmap() when used for 32-bit bitmaps.
This was only an issue for programs compiled against e2fsprogs 1.41
that manipulate bitmaps directly. (Addresses Sourceforge Bugs:
The libext2fs library now uses sysconf() to fetch the page size, instead
of the deprecated getpagesize().
The ext2fs_get_pathname() function will return a partial path if an a
directory in the path is not a directory, displaying it as an inode
number in angle brackets instead of giving up and displaying an error.
This is much more helpful when a user is trying to debug a corrupted
file system.
Codepoints for the RO_COMPAT_REPLICA feature has been reserved.
Added a new library function, ext2fs_file_get_inode_num(), for use by
Fixed a bug in ext2fs_file_set_size2() so that when it is truncating a
file, it actually works.
The block iterator now properly honors the BLOCK_ABORT flag for
extent-based flags. Previously, it didn't, which generally made code
be less efficient, but it could cause bugs in ext2fs_link(), for
example, by causing it to insert multiple directory entries.
Fixed an (harmless other than causing a compiler warning) use of an
uninitialized variable in e2fsck's MMP code.
E2fsprogs 1.42 (November 29, 2011)
This release of e2fsprogs has support for file systems > 16TB. Online
resize requires kernel support which will hopefully be in Linux
version 3.2. Offline support is not yet available for > 16TB file
systems, but will be coming.
This release of e2fsprogs has support for clustered allocation. This
reduces the number of block (now cluster) bitmaps by allocating and
deallocating space in contiguous power-of-2 collections of blocks,
which are called clustered. This is a file system level feature,
called 'bigalloc', which must be enabled when the file system is
initially formatted. It is not backwards compatible with older
Added support for the Multi-Mount Protection (MMP) feature.
E2fsck more efficiently uses scratch files for really big file
systems. (This is a feature that has to be turned on explicitly; see
[scratch_files] in the e2fsck.conf man page.)
Fix a bug in e2fsck where if the free blocks and inodes counts are
incorrect, e2fsck would fix them without printing an error message.
This would cause a "*** FILE SYSTEM WAS MODIFIED ***" message without
any explanation of what was fixed.
E2fsck will no longer attempt to clone an extended attribute block in
pass1b handling if the file system does not support extended
E2fsck will be more careful accidentally asking the user to continue
if the file system is mounted, so that an escape sequence won't cause
a false positive. (Addresses Debian Bug: #619859)
E2fsck now uses less cpu time in pass 5 when large portions of the
bitmaps are uninitialized.
E2fsck will no longer segault when a corrupted file system has a bad
extent, and removing it leads to a block needing to be deallocated.
(Addresses SourceForge Bug: #2971800)
E2fsck will catch termination signals (segfaults, bus errors, sigfpe)
and print debugging information to make it easier to find potential
E2fsck will check to see if the bad block inode looks insane, and will
skip trying to use if it certain fields which should be zero look
non-zero. This is to avoid a corrupted bad block inode causing e2fsck
to get confused and do more harm than good.
If e2fsck modifies certain superblock fields which the kernel doesn't
look at, it will now mark the superblock as dirty without marking the
file system as changed. This avoids signalling the init scripts that
a reboot is necessary, since the kernel isn't going to look at those
fields, so it won't care if they have been changed.
Fixed a bug in the libext2fs library (in the binary search routine of
the icount abstraction) that could (very, very rarely) cause e2fsck to
die in the middle of pass 1 or pass 2 processing.
E2fsck will not try to do a discard operation if the -n option was
specified on the command line.
E2fsck now supports an extended "discard" option which will cause
e2fsck to attempt discard all unused blocks after a full, successful
file system check.
E2fsck will check for the bad block inode to make sure it looks sane
before trusting it, to avoid causing more harm than good to the file
E2fsck now returns additional status bits in its exit code if it
aborts early in the e2fsck run.
E2fsck now correctly calculates the maximum file size in the case of
the huge_file file system feature enabled without extents.
The mke2fs and e2fsck programs now tries to use the punch hole command
as a "discard" when operating on normal files.
The e2image program now supports the qcow2 format, which is a more
efficient way of capturing file system dumps.
Mke2fs now supports the [devices] stanza in mke2fs.conf which allows
per-device defaults to be specified in the configuration file.
Mke2fs now supports the reserved_ratio relation in the [defaults] and
[fs_types] section in mke2fs.conf.
Mke2fs now creates extent-mapped directories for the root and
lost+found directories.
Mke2fs will skip zero'ing the journal if the extended option
"lazy_journal_init" is specified. This can save a lot of time, but it
does add a small amount of risk if the system crashes before the
journal is overwritten entirely once. It is epsecially useful for
Mke2fs will now create file systems that enable user namespace
extended attributes and with time- and mount count-based file
system checks disabled.
Mke2fs will not set a stride or strip size of one block based on block
device attributes obtained from sysfs.
Mke2fs now displays a progress report during the discard process.
Mke2fs now handles extreme file system parameters correctly which
previously caused the inodes per group to drop below 8, leading to a
segfault. (The inodes per group must be a multiple of 8, but the code
didn't correctly deal with an inodes per group count less than 8.)
Mke2fs and tune2fs previously would give an error if the user tried
setting the stride and stripe-width parameters to zero; but this is
necessary to disable the stride and stripe-width settings. So allow
setting these superblock fields to zero. (Addresses Google Bug:
Mke2fs now gives a warning if the auto-detected block size exceeds the
system's page size.
If the enable_periodic_fsck option is false in /etc/mke2fs.conf (which
is the default), mke2fs will now set the s_max_mnt_count superblock
field to -1, instead of 0. Kernels older then 3.0 will print a
spurious message on each mount then they see a s_max_mnt_count set to
0, which will annoy users. (Addresses Debian Bug: #632637)
The default mke2fs.conf now has entries for "big" and "huge", which
are needed for very big file systems.
The resize2fs program now has support for a new online resize ioctl
that can support file systems > 16TB, once it arrives in v3.x kernels.
Fixed bug which caused resize2fs to fail when shrinking an empty file
system down to its minimal size. (Addresses Sourceforge Bug #3404051)
Fixed tune2fs's mount options parsing. (Addresses Debian Bug: #641667)
Allow tune2fs to remove external journals if the device can not be
Debugfs's icheck will now correctly find inodes which use the
searched-for block as an extended attribute block.
Debugfs now has a new "punch" command which remove blocks from the
middle of an inode.
Debugfs now has a new "e2freefrag" command which analyzes the free
space fragmentation of the file system, using the same code as the
e2freefrag program.
Debugfs now has a "filefrag" command which displays information about
a file's fragmentation.
Add support to build a metadata-only, read-only, stripped-down version
of debugfs called rdebugfs.
Fixed a potential stack overrun bug in debugfs.
The badblocks program now correctly recovers from I/O errors when
direct I/O is being used. The badblocks command now also supports a
-B option which forces the use of buffered I/O, and the -v option will
provide a more detailed breakdown of read, write, and failed
comparison errors.
Added e4defrag tool which uses the EXT4_IOC_MOVE_EXT ioctl.
Added support for journals larger than 2GB.
Support using both hard links and symlinks when installing e2fsprogs.
Add overflow checking to tune2fs -i's fsck interval, which must fit in
a 32-bit field.
The debugfs command now has a new 'blocks' command which prints out
data blocks of a particular inode in a format which is useful for
Filefrag will report 0 extents correctly in verbose mode. (Addresses
RedHat Bugzilla: #653234)
Filefrag has been fixed so its -v report prints the correct expected
block number (previously there had been an off-by-one error). In
addition, it will now display the number of contiguous extents when -v
is not specified. This makes it consistent with the number of extents
printed when the -v option was specified. In addition, the number of
contiguous extents is far more interesting/useful than the number of
physical extents for very large files. (Addresses Debian Bug:
#631498, #644792)
Logsave's usage message has been fixed. (Addresses Debian Bug:
Avoid an infinite loop in ext2fs_find_block_device() if there are
symlink loops in /dev caused by a buggy udev.
Added a useful "fallocate" program to the contrib directory.
Fixed an ABI compatibility problem in libext2fs which broke the dump
program. Also added back some macros which dump needed so it could
compile against the latest version of ext2_fs.h (Addresses Debian Bug:
Fixed parsing of MNTOPT_ options for tune2fs and debugfs (Addresses
Debian Bug: #641667)
Added internationalization support for libcom_err error table strings.
Fixed various spelling mistakes found in various output strings found
by I18N translators.
Update translations: French, Chinese, Germany, Indonesian, Swedish,
Vietnamese, Polish, Dutch, Czech. (Addresses Debian Bugs: #520985,
Fixed various Debian Packaging issues. (Addresses Debian Bugs:
#614662, #632169, #641838, #627535, #629355)
Updated/clarified man pages. (Addresses Debian Bugs: #639411,
#642193, #634883)
Programmer's Notes
Initial support for quota as an integrated feature, where the quota
files are hidden system files that are automatically maintained by
e2fsck is present, although disabled by default. It must be enabled
by using the configure option --enable-quota.
Reserved the on-disk fields for the metadata checksum and snapshot
features, which are currently in development.
The ext2fs library now has the new functions ext2fs_punch(),
ext2fs_get_memzero() and ext2fs_file_get_inode().
The ext2fs library now has support for calculating the crc32c checksum
(via the new functions ext2fs_crc32c_be and ext2fs_crc32c_le).
The I/O manager now supports the discard operation.
Reserved file system code points for new 1st class quota feature.
Shortened the compilation lines by moving the autoconf defines to
a config.h header file.
Fixed a potential free of an unitialized pointer in
Fixed miscellaneous gcc -Wall and coverity warnings.
Fixed portability issues for Mac OS X, Hurd, and FreeBSD.
Fixed a build failure when OMIT_COM_ERR is defined.
Improved error checking and fixed memory leaks caused by error return
Add ext2fs_flush2() and ext2fs_close2() which takes a flag to allow
the fsync() to be skipped.
Added a test for extent-mapped journals by mke2fs and tune2fs.
Added a test for creating a large (over 4GB) journal using mke2fs.
Added a test to make sure the inode size remains constant.
The regression test script now prints the list of which tests failed.
The regression test system now uses /tmp for its scratch files, which
is often a tmpfs mounted file system and hence much faster.
The i_e2image test was fixed so it works with valgrind.
Tests that rely on debugfs are now skipped if debugfs wasn't built.
Fixed the dependencies for "make check" so all required dependencies
are built before running the gression tests.
A link to com_err.h is installed in $(includedir) during a "make install".
The po/*.gmo files are automatically rebuilt if they are missing or
out of date. This helps out Debian packaging.
Allow ext2fs_get_memalign() to compile on systems that don't have
Fixed a namespace leak in libext2fs (tdb_null).
E2fsprogs 1.41.14 (December 22, 2010)
Fix spurious complaint in mke2fs where it would complain if the file
system type "default" is not defined in mke2fs.conf.
The resize2fs program will no longer clear the resize_inode feature
when the number reserved group descriptor blocks reaches zero. This
allows for subsequent shrinks of the file system to work cleanly for
flex_bg file systems.
The resize2fs program now handles devices which are exactly 16T;
previously it would give an error saying that the file system was too
E2fsck (and the libext2fs library) will not use the extended rec_len
encoding for file systems whose block size is less than 64k, for
consistency with the kernel.
Programming notes
E2fsprogs 1.41.13 would not compile on big-endian systems. This has
been fixed. (Addresses Sourceforge Bug: #3138115)
The ext2fs_block_iterator2() function passed an incorrect ref_offset
to its callback function in the case of sparse files. (Addresses
Sourceforge Bug: #3081087)
Fix some type-punning warnings generated by newer versions of gcc.
E2fsprogs 1.41.13 (December 13, 2010)
E2fsck now supports the extended option "-E journal_only", which
causes it to only do a journal replay. This is useful for scripts
that want to first replay the journal and then check to see if it
contains errors.
E2fsck will now support UUID= and LABEL= specifiers for the -j option
(which specifies where to find the external journal). (Addresses
Debian Bug #559315)
E2fsck now has support for the problems/<problem code>/force_no
configuration option in e2fsck.conf, which forces a problem to not be
Dumpe2fs will now avoid printing large negative offsets for the bitmap
blocks and instead print a message which is a bit more helpful for
flex_bg file systems.
Mke2fs will now check the file system type (specified with the -t
option) to make sure it is defined in the mke2fs.conf file; if it is
not, it will print an error and abort. If the usage type (specified
with the -T option) is not defined in mke2fs.conf, mke2fs will print a
warning but will continue. (Addresses Debian Bug #594609)
Clarified error message from resize2fs clarifying that on-line
shrinking is not supported at all. (Addresses Debian Bug #599786)
Fix an e2fsck bug that could cause a PROGRAMMING BUG error to be
displayed. (Addresses Debian Bug #555456)
E2fsck will open the external journal in exclusive mode, to prevent
the journal from getting truncated while it is in use due to a user
accidentally trying to run e2fsck on a snapshotted file system volume.
(Addresses Debian Bug #587531)
Fix a bug in e2fsck so it has the correct test for the EOFBLOCKS_FL
The tune2fs program can now set the uninit_bg feature without
requiring an fsck.
The tune2fs, dumpe2fs, and debugfs programs now support the new ext4
default mount options settings which were added in 2.6.35.
The e2fsck and dumpe2fs programs now support the new ext4 superblock
fields which track where and when the first and most recent file
system errors occurred. These fields are displayed by dumpe2fs and
cleared by e2fsck. These new superblock fields were added in 2.6.36.
Debugfs now uses a more concicse format for listing extents in its
stat command. This format also includes the interior extent tree
blocks, which previously was missing from stat's output for
extent-based files.
Debugfs has a new option, -D, which will request Direct I/O access of
the file system.
Mke2fs will skip initializing the inode table if a device supports
discard and the discard operation will result in zero'ed blocks.
Badblocks will now correctly backspace over UTF-8 characters when
displaying its progress bar. (Addresses Gentoo Bug #309909; Addresses
Debian Bugs #583782 and #587834)
E2freefrag will now display the total number of free extents.
Resize2fs -P no longer requires a freshly checked filesystem before
printing the minimum resize size.
Fixed a floating point precision error in a binary tree search routine
that can lead to seg fault in e2fsck and resize2fs.
Fixed a bug in e2fsck where if both the original and backup superblock
are invalid in some way, e2fsck will fail going back to the original
superblock because it didn't close the backup superblock first, and
the exclusive open prevented the file system from being reopened.
Fixed a big in e2freefrag which caused getopt parsing to fail on
architectures with unsigned chars. (Addresses Gentoo Bug: #299386)
Clarified an mke2fs error message so a missed common in an -E option
(i.e., mke2fs -t ext4 -E stride=128 stripe-width=512 /dev/sda1")
results in a more understandable explanation to the user.
Mke2fs now displays the correct valid inode ratio range when
complaining about an invalid inode ratio specified by the user.
Mke2fs now understands the extended option "discard" and "nodiscard",
and the older option -K is deprecated. The default of whether
discards are enabled by default can be controled by the mke2fs.conf
Mke2fs's handling of logical and physical sector sizes has been
improved to reflect the fact that there will be some SSD's with 8k and
16k physical sectors arriving soon. Mke2fs will no longer force block
size to be the physical sector size, since there will be devices where
the physical sector size is larger than the system's page size, and
hence larger than the maximal supported block size. In addition, if
the minimal and optimal io size are not exported by the device, and
the physical sector size is larger than the block size, the physical
sector size will be used to set the Raid I/O optimization hints in the
E2fsck will now display a better, more specific error message when the
user enters a typo'ed device name, instead of blathering on about
alternate superblocks.
Fixed various Debian Packaging Issues
Updated/clarified man pages (Addresses Debian Bugs: #580236, #594004,
#589345, #591083; Addresses Launchpad Bug: #505719)
Update the Chinese, Chzech, Dutch, French, Germany, Indonesian,
Polish, Swedish, and Vietnamese translations.
Programmer's Notes
Fix a dependency definition for the static and profiled blkid
libraries which could cause compile failures in some configurations.
(Addresses Debian Bug: #604629)
Add support for Direct I/O in the Unix I/O access layer.
Fixed a memory leak in the Unix I/O layer when changing block sizes.
Fixed minor memory leaks in mke2fs.
Added a new function to the ext2fs library, ext2fs_get_memalign().
The tst_super_size test program will check to make sure the superblock
fields are correctly aligned and will print them out so they can be
manually checked for correctness.
Fixed some makefile dependencies for test programs in lib/ext2fs.
Reserved the feature flags and superblock fields needed for the Next3
snapshot feature.
Reserved the feature flags for EXT4_FEATURE_INCOMPAT_DIRDATA and
E2fsprogs 1.41.12 (May 17, 2010)
Mke2fs now gives a correct error message if the external journal
device is not found. (Addresses Red Hat Bug #572935)
Resize2fs -P will now refuse to print a minimum size if the file
system is not clean. Previously it would go ahead and print a minimum
size anyway, which might not be correct, leading to user confusion.
E2fsck now tests for extents that begin at physical block 0 and
rejects them as invalid. (Addresses Google Bug: #2573806)
Fixed a bug in e2fsck which could cause it to crash when trying to
remove an invalid extent and the block bitmaps hadn't yet been loaded.
(Addresses SourceForge Bug: #2971800)
E2fsck now will completely skip time-based checks if the system clock
looks insane or the option broken_system_clock is set in
E2fsck would previously report an i_blocks corruption for a 4T file
created using posix_fallocate; this bug has been fixed.
E2fsck will now correctly mark a sparse journal as invalid and will
delete and recreate the journal to address the problem.
E2fsck would previously incorrectly ask the user whether she would
like to abort the file system check after finding a problem --- and
then abort regardless of the user's answer. This is annoying, and
has been fixed.
E2fsck can now continue even if it fails to recreate the resize
inode; previously it would just abort the file system check
E2fsck could potentially remove directory entries for inodes found in
the unused region of the inode table; this would generally happen on
ext4 file systems that do not use journaling. This bug has been fixed
by not clearing these directory entries once it has been established
that bg_unused_inodes may not be trustworthy; once pass #2 has been
completed, e2fsck will restart the file system check from the
beginning, and then it will be safe to delete any directory entries
pointing to inodes that appear to be deleted. (Addresses Google Bug:
E2fsck will not try to set the block group checksums if the user
cancels the fsck with a control-C. It's a bad idea to set the
checksums if e2fsck hasn't been completed, and it often results an the
error message, "Inode bitmap not loaded while setting block group
checksum info". (Addresses Launchpad Bug: #582035)
The mke2fs program now queries the kernel for the physical as well as
the logical sector size, and will not allow a blocksize below the
logical, and will strongly encourage a blocksize at least as big as
the physical blocksize. This is needed for 4k sector drives that
emulate 512 byte sector sizes.
Mke2fs will now allow a flex_bg size of 1. This is unusual, and
rarely needed, but it is a legal value.
E2fsck will check for cases where the EOFBLOCKS_FL is set when it is
not needed, and offer to clear it; this is a sign of a kernel bug, but
more importantly, some released kernels may crash when this situation
is encountered on ext4 file systems. (Addresses Google Bug: #2604224)
E2fsck will use the EOFBLOCKS_FL flag exclusively to check whether
i_size is correct. (Kernels starting with 2.6.34 will set
The com_err library will now only output ^M (a CR character) when the
tty is in raw mode.
Update the Czech, Chinese, Dutch, French, Germany, Indonesian, Polish,
and Vietnamese translations.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #571247, #563487)
Programmer's Notes
The regression test suite now uses its own mke2fs.conf file, so that
downstream distributions want change the mke2fs.conf file which is
distributed in the RPM or dpkg file, without worrying about screwing
up the regression test results.
Always build namei.o so that building with configure --disable-debugfs
works correctly. Long-term, if we care about reduced e2fsprogs
builds, we need a more general solution for deciding what .o files are
needed for a particular build. Given that install floppies are going
(gone?) the way the dodo bird, we probably don't care, though.
(Addresses Sourceforge Bug: #2911433)
Add configure options --enable-symlink-build and
--enable-symlink-install, which allow e2fsprogs be built using
symlinks instad of hard links, and to be installed using symlinks
instead of hard links, respectively. It is useful when the file
system where the build is taking place, or the file system where
e2fsprogs is installed, can't handle hard links for some reason.
(Addresses Sourceforge Bug: #1436294)
Fixed compile warning in mke2fs.c.
E2fsprogs 1.41.11 (March 14, 2010)
E2fsck will no longer give a fatal error and abort if the physical
device has been resized beyond 2**32 blocks. (Addresses Launchpad
Bug: #521648)
Debugfs has a bug fixed so that "logdump -b <blk>" now properly shows
the allocation status of the block <blk>. (Addresses Debian Bug:
E2fsck now prints a much more emphatic and hopefully scary message
when a file system is detected as mounted while doing a read/write
check of the filesystem. Hopefully this will dissuade users from
thinking, "surely that message doesn't apply to *me*" :-(
E2fsck -n will now always open the file system read-only. We now
disallow certain combination of options which previously were manual
exceptions; this is bad because it causes users to think they are
smarter than they really are. So "-n -c", "-n -l", "-n -L", and "-n
-D" are no longer supported. (Addresses Launchpad Bug: #537483)
In e2fsprogs 1.41.10, mke2fs would ask for confirmation to proceed if
it detected a badly aligned partition. Unfortunately, this broke some
distribution installation scripts, so it now just prints the warning
message and proceeds. (Addresses Red Hat Bug: #569021. Addresses
Launchpad Bug: #530071)
Mke2fs would take a long time to create very large journal files for
ext4. This was caused by a bug in ext2fs_block_iterate2(), which is
now fixed.
E2fsck now understands the EOFBLOCKS_FL flag which will be used in
2.6.34 kernels to make e2fsck not complain about blocks deliberately
fallocated() beyond an inode's i_size.
E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
e2fsck -fD can corrupt non-indexed directories when are exists one or
more file names which alphabetically sort before ".". This can happen
with ext2 filesystems or for small directories (take less than a lock)
which contain filenames that begin with a space or some other
punctuation mark. (Addresses Debian Bug: #573923, Addresses Launchpad
Bug: #525114)
Programmer's Notes
Add new test, f_rehash_dir, which checks to make sure e2fsck -D works
The libcom_err function now has support for Heimdal's com_right_r
function(). (Addresses Sourceforge Bug: #2963865, Addresses Debian
Bug: #558910)
E2fsprogs 1.41.10 (February 7, 2010)
Fix resize2fs bug which causes it to access invalid memory.
Add libss support for
Fix e2fsck's check for extent-mapped directory with an incorrect file
Add new e2fsck.conf configuration option, default/broken_system_clock
to support systems with broken CMOS hardware clocks. Also, since too
many distributions seem to have broken virtualization scripts now,
e2fsck will by default accept dates which are off by up to 24 hours by
default. (Addresses Debian Bugs: #559776, #557636)
Fix a bug where mke2fs may not use the best placement of the inode
table when there is only room for a single block group in the last
E2fsck is now smarter when it needs to allocate blocks in the course
of fixing file system problems. This reduces the number of spurious
differences found in pass #5.
E2fsck will no longer rehash directories which fit in a single
directory block.
E2fsck now correctly handles holes in extent-mapped directories (i.e.,
sparse directories which use extents).
Fix big-endian problems with ext2fs_bmap() and ext2fs_bmap2().
Fix a bug in filefrag where on platforms which can allow file systems
with 8k blocks, that it doesn't core dump when it sees a file system
with 8k block sizes. (Thanks to Mikulas Patocka for pointing this
E2fsck will correctly fix directories that are have an inaccurate
i_size as well as other problems in a single pass, instead of
requiring two e2fsck runs before the file system is fully fixed.
Fix e2fsck so it will correctly find and detect duplicate directory
entries for non-indexed directories. ( Addresses Sourceforge Bug:
Mke2fs will use BLKDISCARD to pre-discard all blocks on an SSD or
thinly-provisioned storage device. This can be disabled using the -K
Enhance libext2fs so it works around bug in Linux version 2.6.19
and earlier where the /proc/swaps file was missing the header on
the first line.
Fix bug in Linux version 2.6.19 and earlier where the /proc/swaps file
was missing the header on the first line.
Fix some big-endian bugs in e2fsck and libext2fs.
Fix resize2fs so it works correctly on file systems with external
journals instead of failing early with the error "Illegal inode
Fix libss so that it does not seg fault when using a readline library
which does not supply a readline_shutdown() function.
Updated dumpe2fs's usage message so it correctly gives the right
arguments summary for "-o superblock=<num>" and "-o blocksize=<num>".
(Addresses Launchpad Bug: #448099)
Teach libext2fs to ignore the high 32 bits of the i_blocks field
when huge_file file system feature is set, but the inode does not
have the HUGE_FILE_FL flag set.
Fix e2fsck's handling of 64-bit i_blocks fields.
E2fsck will now print "Illegal indirect block", "Illegal
double-indirect block", etc., instead of "Illegal block #-1" or
"Illegal block #-2", etc. This makes it easier for users to
understand what has gone wrong. (Addresses SourceForge Bug: #2871782)
Mke2fs now will obtain get device topology information from blkid and
use it to populate the superblock stride and stripe sizes. It will
also warn if the block device is misaligned
Fix file descriptor leaks in fsck and debugfs. (Addresses Novell Bug:
Fix the libext2fs library code to round up the bitmap size to a 4-byte
boundary, to prevent spurious seg faults caused by the x86
architecture. This doesn't affect Linux systems, but was a major
problem on a number of *BSD systems. (Addresses Sourceforge Bug:
Fix resize2fs's minimum size required for a file system so it doesn't
fail when "resize2fs -M" is run. (Addresses RedHat Bugzilla: #519131)
Dumpe2fs now prints summary information about the contents of the
Avoid printing scary error messages when e2fsck starts running
problems on low-memory systems, as it tends to panic and mislead the
user. (Addresses Debian Bug: #509529)
Fix blkid's modules.dep parser so it handles compressed (.ko.gz)
modules files. (Address Red Hat Bug: #518572)
Fix tune2fs so it can add a journal when an extent-enabled file system
is mounted. (Addresses Launchpad bug: #416648)
Update Czech, Indonesian, Polish and Vietnamese translations (from the
Translation Project).
Update/clarify man pages. (Addresses Sourceforge Bug: #2822186)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #540111)
Programmer's Notes
The configure script supports the --with-cc, --with-ccopts, and
--with-ldopts options. Instead, the more standard use of CC=,
CCFLAGS=, and LDFLAGS= in the configure command line is used instead.
Also, --with-ld, which never worked, was also removed.
(Addresses Sourceforge Bug: #2843248)
The in-tree header files are only used if the in-tree uuid or blkid
libraries are used. Otherwise, use the system-provided uuid or blkid
header files if using the system-provided libraries.
Fix some build failures caused by --disable-* configure options.
Work around a bug in autoconf 2.64.
E2fsprogs 1.41.9 (August 22, 2009)
Fix a bug in e2fsck routines for reallocating an inode table which
could cause it to loop forever on an ext4 filesystem with the FLEX_BG
filesystem feature with a relatively rare (and specific) filesystem
corruption. This fix causes e2fsck to try to find space for a new
portion of the inode table in the containing flex_bg, and if that
fails, the new portion of the inode table will be allocated in any
free space available in the filesystem.
Make e2fsck less annoying by only asking for permission to relocate a
block group's inode table once, instead of for every overlapping
block. Similarly, only ask once to recompute the block group
checksums, instead of once for each corrupted block group's checksum.
Fix filefrag to avoid print the extent header if the FIEMAP ioctl is
not present, and it needs to fall back to using the FIBMAP ioctl.
Fix filefrag to correctly print the number of extents for zero-length
files. (Addresses Debian Bug: #540376)
Filefrag now has a -B option which forces the use of the FIBMAP ioctl
to more easily debug the FIBMAP code.
Fixed filefrag for non-extent based files.
Add a new program, e2freefrag, which displays information about the
free space fragmentation in an ext2/3/4 filesystem.
Fix inode resizing via tune2fs -I so that it works correctly in the
face of non-empty bad blocks inodes, and if the filesystem was
formatted using the "mke2fs -E stride=N" option for RAID arrays.
Fix regression in ext2fs_extent_set_bmap() caused e2fsck -fD to fail
and corrupt large directories if the directory needs to shrink by more
than one block. (Addresses Debian Bug: #537510)
Fix e2fsck's buggy_init_scritps=1 so that the if the last write and/or
last mount times are in the future, they are corrected even if
buggy_init_scripts is set. This is needed because otherwise resize2fs
will refuse to resize the filesystem, even after running "e2fsck -f".
(Addresses Launchpad bug: #373409)
E2fsck will now print much fuller information when the last mount time
or last written time is in the future, since most people can't seem to
believe their distribution has buggy init scripts, or they have a
failed CMOS/RTS clock battery.
Enhance dumpe2fs to dump the extent information via the 'stat'
command, and more detailed extent information via the new command
Update French, Polish, Czech, and Sweedish translation from the
Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
Programmer's Notes
Fixed miscellaneous gcc -Wall warnings.
Fixed memory leak in error path in ext2fs_block_iterate2()
Fixed non-Linux build of the intl directory by adding support for the
E/Q/V macros.
The bitmap read/write functions now treat uninitialized bitmaps as
unallocated; this fixes a number of problems in all e2fsprogs for ext4
filesystems when there is a need to allocate new blocks or inodes, and
there aren't any free blocks or inodes in the already-used block
Improve ext2fs_extent_set_bmap() to avoid creating new extents which
get inserted into the extent tree when they are not needed.
E2fsprogs 1.41.8 (July 11, 2009)
Fix resize2fs's online resizing, fixing a regression which in
e2fpsrogs 1.41.7. (Addresses Debian Bug: #535452)
Fix potential filesystem corruptions caused by using resize2fs to
shrinking ext4 filesystems with extents enabled. (Addresses Red Hat
Bug: #510379)
Optimize uuid_generate() to avoid running uuidd if it is not setuid or
setgid and the currently running program doesn't have write access to
the uuidd work directory.
Add safety checks (for non-Linux systems) so that uuidd isn't run with
file descriptors 0, 1, and 2 closed; and if they are closed, uuidd
will be careful not to close the file descriptor for its unix domain
socket when it detaches itself from the controlling tty. Also add
safety checks so that if the unix domain socket between the uuid
library and uuidd program is closed for any reason, both the library
and the uuidd will return an appropriate error code instead of looping
in an infinite loop.
The e2croncheck script, which creates an LVM snapshot and then checks
the ext3/4 filesystem via the LVM snapshot, has been added to the
contrib directory.
Fix filefrag program for files that have more than 144 extents.
Update French, Polish, Czech, Indonsian, and Sweedish translation from
the Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug #535530)
Update/clarify man pages.
Programmer's Notes
Fix compilation problem when configured with --disable-uuid.
Don't build uuidgen if configured with --disable-uuid.
Add the new library function ext2fs_test_inode_bitmap_range(), and
optimized ext2fs_test_block_bitmap_range(), which will be needed for
future optimizations for e2fsck.
Fix makefile dependencies for libcom_err so that the Makefiles work
well on non-GNU make program. (Addresses Sourceforge Patches: #2813809)
Enhance the build system so that the full set of commands executed by
the Makefiles are displayed, instead of the Linux kernel summary
output, if the build was configured with --enable-verbose-makecmds, or
if GNU make is in use and the V variable is non-null, i.e., via "make
E2fsprogs 1.41.7 (June 29, 2009)
Fix a bug in libext2fs which can cause e2fsck and resize2fs to write
uninitalized data into the portion of the inode beyond the first 128
bytes when operating on inodes mapped via extents; potentially
corrupting filesystems.
Fix memory leaks in e2fsprogs, including a very large memory leak
which can cause e2fsck to run out of memory when checking very large
filesystems using extents.
The logsave program will now filter out the ^A and ^B characters when
writing to the console.
Harden ext2fs_validate_entry() so that lsdel will not read beyond the
end of the block even if the directory block is corrupted.
Fix debugfs from core dumping if the logdump command fails to open the
output file.
Enhance badblocks to print the currently tested block number when
interrupted with ^C.
Fix lsattr to exit with a non-zero status when it encounters errors.
(Addresses RedHat Bugzilla #489841)
Fix e2fsprogs to use the same encoding for rec_len in 64k (and larger)
filesystems as the kernel when encoding rec_len >= 64k. For 64k
filesystems (currently all that is supported by e2fsprogs, this is
only a minor corner case).
Resize2fs will now update the journal backup fileds in the sup0erblock
if the journal is moved; this avoids an unnecessary full fsck after
resizing the filesystem. (Addresses RedHat Bugzilla: #505339)
Fix libext2fs to properly initialize i_extra_size when creating the
journal and resize inodes.
Change badblocks to allow block sizes larger than 4k.
Fix filefrag progam so it correctly checks for errors from the fiemap ioctl.
Update Chinese and Czech translation from the Translation Project.
Clean up various man pages. (Addresses Debian Bug #531385 and #523063)
Programmer's Notes
Add --disable-libuuid option to configure which uses an in-system
installed version of libuuid; the private version is enabled by
Add --valgrind-leakcheck option to the test_script program which runs
valgrind with the appropriate options to find memory leaks.
E2fsprogs 1.41.6 (May 30, 2009)
Fix a critical regression in e2fsck introduced version 1.41.5 which
can undo updates to the block group descriptors after a journal replay.
If e2fsck receives an I/O error while replaying the journal, prompt
the user whether they want to ignore the error or not; if e2fsck is
run in preen mode, force fsck to abort the preen pass.
Fix a bug which would cause e2fsck to core dump if the filesystem
contains a corrupt extent header, and the user declines to clear the
inode. (Addresses Sourceforge Bug: #2791794)
Fix e2fsck to restart only once in the case of multiple block groups
which inodes in use that are in the uninitialized part of the block
group's inode table.
To reduce user confusion, if the /etc/mtab file is missing
ext2fs_check_mount_point and ext2fs_check_if_mounted will return a
new, explicit error code to indicate this case. This will cause
e2fsck to give a clearer error message when the user is using buggy
rescue CD's that don't properly set up /etc/mtab. (Addresses Debian
Bug: #527859)
Fix e2fsck so that if the primary group descriptors are corrupted, but
the backup superblock is entirely invalid, to go back to using (and
fixing) the priary group descriptors instead of completely giving up
on the filesystem. (Addresses Debian Bug: #516820)
Change e2fsck to not abort a preen pass if an inode is found to have
i_file_acl_hi non-zero. Ext3 filesystems don't care, and newer
kernels (post 2.6.29) will ignore this field. So let's fix it
automatically during the preen pass instead of forcing the user to fix
this up manually. (Addresses Debian Bug: #526524)
Add resource tracking for e2fsck passes 1b through 1d.
Speed up e2fsck by eliminating unnecessary journal checks if the
filesystem is already mounted and doesn't need recovery (since the
kernel would have run the journal when the filesystem was mounted.)
Also speed up e2fsck by avoiding unnecessary block group descriptor
updates in ext2fs_close().
Add support to chattr to migrate inodes from using direct/indirect
blocks to extents.
Avoid corrupting the filesystem if there is an attempt to shrink a
filesystem using resize2fs smaller than posible by making
ext2fs_set_bmap() more careful not to delete the old block until the
new block can be inserted. In addition, fix a bug in how the minimum
size of the filesystem (plus a safety margin) is calculated, and
modify resize2fs to refuse to shrink the filesystem below that minimum
size without the force flag.
Teach blkid to try to figure out DM device names using take advantage
of information in sysfs when running on kernels (2.6.29 and later)
which provide this information in /sys/block/dm-<N>/dm/name; this is
much faster than scanning for the devncie number in /dev/mapper.
Fix blkid to prefer /dev/mapper/<name> device names instad of the
private /dev/dm-X names.
Add an -a option to debugfs's close_filesys command which writes any
changes to the superblock or block group descriptors to all of the
backup superblock locations.
Add support to the filefrag program to use the FIEMAP ioctl.
Update Chinese translation from the Translation Project.
Clean up various man pages. (Addresses Red Hat Bugzilla: #502971 and
Launchpad Bug: #381854)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug #506064)
Programmer's Notes
Add test code to make sure e2fsck's problem.c doesn't have two problem
codes assigned to duplicate values.
Avoid using a hard-coded path for /bin/rm in block's
(Addresses Sourceforge Bug: #2780205)
Clean up e2fsck by removing #ifdef RESOURCE_TRACK by adding an empty
function declaration for init_resource_track() and
print_resource_track() when RESOURCE_TRACK is not defined.
The test code which is used to build the tst_csum progam has been
moved from from tst_csum.c into csum.c under an #ifdef DEBUG to to
avoid compile problems caused by not having a prototype for
ext2fs_group_desc_csum(). (Addresses Sourceforge Bug #2484331)
Update the config.guess and config.sub file to the latest from the
FSF, to allow e2fsprogs to build on the avr32 platform. (Addresses
Debian Bug: #528330)
Add a new function, ext2fs_extent_open2(), which behaves like
pext2fs_extent_open(), but uses the user-supplied inode structure
when opening an extent instead of reading the inode from disk.
E2fsprogs 1.41.5 (April 23, 2009)
Fix a number of filesystem corruption bugs in resize2fs when growing
or shrinking ext4 filesystems off-line (i.e., when the ext4 filesystem
is not mounted).
Debugfs can now set i_file_acl_high via the set_inodes_field command,
and print a 64-bit file acl. This is useful for debugging filesystem
corruptions where the high bits of i_file_acl_high are set. E2fsck
will detect and fix non-zero i_file_acl_high on 32-bit filesystems
since some Linux kernel versions pay attention to this field even when
they shouldn't.
Speed up e2fsck when checking clean filesystems by avoiding
unnecessary block reads, and coalescing the block group descriptor
blocks so they are read using a single read operation.
The libuuid library will now close all file descriptors before running
uuidd. This avoids problems when the calling program has open sockets
which then never get closed because uuidd is a long-running helper
daeomn. (Addresses Launchpad bug: #305057)
In order to avoid unnecessary full filesystem checks by e2fsck after
an on-line resize, e2fsck will ignore the NEEDS_RECOVERY flag set on
the backup superblocks. (Addresses Red Hat Bugzilla: #471925)
Mke2fs will avoid trying to create the journal when run in
superblock-only mode (mke2fs -S), since the left-over journal in the
inode table will cause mke2fs to fail.
Fix a bug in libext2fs functions that check to see if a particular
device or filesystem image is mounted, which would cause these
functions to report that a file identical to the (relative) pathname
used by a pseudo-filesystem was mounted when in fact it was not.
Update Czech translation from the Translation Project.
Add Chinese (simplified) translation from the Translation Project.
Fix support for external journals (which was broken in e2fsprogs
Fix a regression in debugfs where the "stat" command when no
filesystem was open would cause debugfs to crash with a segmentation
Starting in the 2.6.29 linux kernel, the ext4 filesystem driver can be
used to support filesystems without a journal. Update the blkid
library so it understands this.
The blkid library will remove an entry from the blkid cache
representing the entire disk if partitions are found, since presuambly
the device previously had no partition table, but has now transitioned
to using a partition table.
Add a check to mke2fs and tune2fs that the argument to the -m option
(which specifies the reserved ratio) must be greater than zero.
(Addresses Debian Bug: #517015)
Add support for tracking the number kilobytes written to the
filesystem via the superblock field s_kbytes_written. It will be
updated by the kernel as well as by e2fsprogs programs which write to
the filesystem. This is useful for tracking the wear to filesystems
on Solid Sstate Drives.
Fix compatibility issue in the libext2fs info file and makeinfo
version 4.12. (Addresses Red Hat Bugzilla: #481620)
Update/clarify man pages. (Addresses Debian Bug: #515693, #365619)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug: #506279)
Programmer's Notes
Fix Hurd compilation problem in e2fsck and tune2fs (Addresses Debian
Bug: #521602)
Fix various gcc compilation warnings and other programming cleanups.
(Addresses Red Hat Bugzilla: #486997)
Add support for building the blkid command statically.
Add support for disabling the built-in blkid library in favor of a
system-installed blkid implementation via the configure option
E2fsprogs 1.41.4 (January 27, 2009)
Fixed a bug which could sometimes cause blkid to return an exit value
of zero for a non-existent device (Addresses Debian Bug: #502541)
Blkid will now recognize ext3 filesystems that have the test_fs flag
set as ext3 filesystems.
The blkid library will now recognize btrfs filesystems and swap
devices currently used by user-level software suspend.
Tune2fs now updates the block group checksums when changing the UUID
to avoid causing e2fsck to complain vociferously at the next reboot.
Tune2fs's inode size resizing algorithms have been fixed so it is not
vastly inefficient for moderate-to-large filesystems, due to some
O(n**2) and O(n*m) algorithms that didn't scale well at all.
Fix tune2fs's inode resizing algorithm so it will not corrupt
filesystems laid out for RAID filesystems; in addition, tune2fs will
refuse to change the inode size for filesystems that have the flex_bg
feature enabled. (This is a limitation in the current implementation
of tune2fs -I.)
E2fsprogs 1.41 broke debugfs's logdump command for normal ext3/4
filesystems with 32-bit block numbers, when the headers for 64-bit
block numbers was added. This regression has been fixed.
Debugfs's ncheck command has been fixed to avoid printing garbage
characters at the end of file names.
Fix resize2fs for ext4 filesystems. Some blocks that that need moving
when shrinking filesystems with uninit_bg feature would not be moved.
In addition, blocks and inode table blocks were not being correctly
freed when shrinking filesystems with the flex_bg feable, which caused
resize2fs -M to fail. Finally, when blocks are moved, make sure the
uninitialized flag in extents is preserved.
Fix bug which caused dumpe2fs to abort with an error if run on a
filesystem that contained an external journal.
Some distributions used "mke3fs" as an alias for "mkfs.ext3"; check
for this in argv[0] to provide better legacy support for these
distributions. This is a practice that should NOT be continued,
Mke2fs now has a new option -U, which allows the user to specify the
UUID that should be used for the new filesystem.
Mke2fs will treat devices that are exactly 16TB as if they were 16TB
minus one block. This allows users who have read that ext3 supports
up to 16TB filesystems and who create a 16TB LVM to not get confused,
since the true limit is really 16TB minus one block.
E2fsck will no longer abort an fsck run if block group has an errant
E2fsck now distinguishes between fragmented directories and fragmented
files in verbose mode statistics and in the fragcheck report.
Fix a bug in e2fsck which casued it double count non-contiguous
extent-based inodes.
E2fsck will leave some slack space when repacking directories to allow
room for a few directory entries to be added without causing leaf
nodes to be split right away.
Fix a bug which caused e2fsck to crash when it comes across a
corrupted interior node in an extent tree with the error message:
"Error1: Corrupt extent header on inode XXXXXX"
E2fsck problem descriptions involving the journal are no longer
referred to as "ext3" problems, since ext4 filesystems also have
Fix a long-standing bug in e2fsck which would cause it to crash when
replying journals for filesystems with block sizes greater than 8k.
Update Catalan translation from the Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #503057, #502323, #511207)
Programmer's Notes
Fix build of e2fsck.profiled, and add support for building profiled
binaries in the misc directory if configured with --enable-profile.
The ext2fs_open() function now performs more sanity checks on the
superblock to avoid potential divide by zero errors by other parts of
The ext2fs_read_inode_full() function now has a safety check to avoid
a segmentation fault on corrupted filesystems.
The ext2fs_new_inode() function now has a sanity check so that if the
s_first_inode field in the superblock is insane, it will return
EXT2_ET_INODE_ALLOC_FAIL instead of returning an invalid inode number.
To avoid segmentation faults, ext2fs_block_alloc_stats() and
ext2fs_inode_alloc_stats() now validates the passed inode or block
number to avoid overrunning an array boundary.
Various signed/unsigned errors for variables containing block numbers
have been fixed.
Accomodations for gcc's stupidity in not realizing that constant
strings that do not contain a '%' character are safe to use in format
strings have been made so that distributions that want to compile
e2fsprogs with -Werror=format-security have an easier time doing so.
Added a new 64-bit getsize interface, ext2fs_get_device_size2().
Added the utility make-sparse.c to the contrib directory.
The ext2fs_block_iterate2() function now reflects errors from
ext2fs_extent_set_bmap() to the caller, if the callback tries to
change a block on an extent-based file, and ext2fs_extent_set_bmap()
fails for some reason (for example, there isn't enough disk space to
split a node and expand the extent tree.
The ext2fs_block_iterate2() function will preserve the uninit flag in
extents when the callback function modifies a block in an extent-based
E2fsck will now flag filesystems that have an insane s_first_ino field
in their superblock, and attempt to use a backup superblock to repair
the filesystem.
E2fsprogs 1.41.3 (October 12, 2008)
E2fsck has been fixed so it prints the correct inode number for
uinit_bg related problems.
E2fsck will now offer to clear the test_fs flag if the ext4 filesystem
is available on linux. This can be disabled via a configuration
option in /etc/e2fsck.conf.
Fix a file descriptor leak in libblkid when checking to see if an ext4
or ext4dev module exists.
Fix a bug in e2fsck where in preen mode, if there are disk I/O errors
while trying to close a filesystem can lead to infinite loops.
(Addresses Red Hat Bugzilla #465679)
Fix a bug in resize2fs where passing in a bogus new size of 0 blocks
will cause resize2fs to drop into an infinite loop. (Addresses Red
Hat Bugzilla: #465984)
Add a check in the Unix I/O functions in libext2fs so that when a
device is opened read/write, return an error if the device is
read-only using the BLKROGET ioctl.
Fix debugfs's ncheck command so that it prints all of the names of
hardlinks in the same directory.
Fix a bug in libblkid so it correctly detects whether the ext4 and
ext4dev filesystems are available, so that the ext4dev->ext4
fallback code works correctly.
Programmer's Notes
Fix a parallel build problem by making sure util/subst is built before
trying to build the lib/et directory. (Addresses Sourceforge Bug:
Updated "make depend" information for crc16.o
E2fsprogs 1.41.2 (October 2, 2008)
Fix e2fsck's automatic blocksize detection. This fixes a regression
from e2fsprogs 1.40.7 which caused e2fsck to fail if the user
specifies a block number using the -b option if the blocksize option
isn't also specified using -B. Unfortunately, users very commonly
invoke e2fsck using "e2fsck -b 32768 /dev/hdXXX" to use the backup
superblock; in fack e2fsck will often suggest this kind of command
line. Oops.
Enhance the debugfs's "ncheck" command so it will print all of the
pathnames for the specified inodes. (Previously, in some cases ncheck
might not print a pathname for an inode at all if some of the other
inodes had multiple hard links.)
Enhance debugfs's "hash" command so the hash seed can be specified via
a command-line option. In addition, allow the hash algorithm to be
specified by name instead of just by number.
Fix e2fsck so that we don't accidentally print the translation file's
header when asking the user a custom question so there is no prompt
defined for a particular problem record. For example, the question
"Run journal anyway" will get the PO header tacked on because e2fsck
erroneously passed the null string to _(). (Addresses Launchpad Bug:
Enhance badblocks so that it can test a normal file which is greater
than 2GB.
Enhance the badblocks command so that it displays the time and
percentage complete when in verbose mode. (Addresses Debian Bug:
Fix a potential memory leak in a error handling path in debugfs's
ncheck function.
Fix a potential memory corruption problem if a memory allocation fails
in resize2fs.
Fix the usage message for debugfs's logdump command to be consistent
with its man manpage.
Update Polish, French, Vietnamese, Dutch, Indonesian, German, Czech,
and Sweedish translation from the Translation Project.
Add documentation for the file I/O functions to the libext2fs.texinfo
file. (Addresses Debian Bug: #484877)
Update and clarified various man pages. (Addresses Launchpad Bug
#275272; Addresses Debian Bugs: #498100, #498101, #498102, #498103)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug: #497619)
Programmer's Notes
Fix a potential file descriptor leack in libcom_err by setting the
close-on-exec flag for a fd used for debugging. (Addresses Red Hat
Bugzilla #464689)
Fix a potential race in libcom_err by using sem_post/sem_init. SuSE
has been carrying a patch for a long time to prevent a largely
theoretical race condition if a multi-threaded application adds and
removes error tables in multiple threads. Unfortunately SuSE's
approach breaks compatibility by forcing applications to link and
compile with the -pthread option; using pthread mutexes has
historically been problematic. We fix this by using sem_post/sem_init
Fix e2fsprogs-libs build failure due to 'subs' target. (Addresses
Sourceforge Bug: #2087502)
Avoid linking e2initrd_helper, debugfs, blkid, and fsck with unneeded
libraries when using ELF shared libraries.
Fix ELF shared library when building on systems that don't already
have the e2fsprogs shared libraries already installed. (Addresses
Sourceforge Bug: #2088537)
Fix the pkg-config files so they work correctly when linking with
static libraries and fix the include directory so programs don't have
to use #include <ext2fs/ext2fs.h>, but can use #include <ext2fs.h>
instead. (Addresses Sourceforge Bug: #2089537)
Make sure ext2fs_swab64() is compiled for all platforms, and not just
for x86. (Addresses Debian Bug: #497515)
Remove the unused ext2fs_find_{first,ext}_bit_set() functions for all
non-x86 platforms. (They had been removed for x86 earlier.)
Fix diet libc compilation support, which had bitrotted due to lack of
TLC. Fixing this improves general portability.
When installing the link library when using ELF shared libraries,
avoid using absolute pathnames if the link library and the shared
library are installed in the same directory. (Addresses Sourceforge
Bug: #1782913)
Fix gen-tarball so it will work even if the top-level directory has
been renamed to something other than "e2fsprogs". Also make
gen-tarball print the size of the resulting tar.gz file.
E2fsprogs 1.41.1 (September 1, 2008)
Many people are forgetting to update their mke2fs.conf file, and this
causes ext3, ext4, and ext4dev filesystems won't get created with the
proper features enabled. We address this in two ways. First, mke2fs
will issue a warning if there is not definition for an ext3, ext4, or
ext4dev filesystem and the user is trying to create such a filesystem
type. Secondly, when installing from a source build, "make install"
will provide basic configuration file handling for /etc/mke2fs.conf.
If it exists, and does not mention ext4dev, it will be moved aside to
/etc/mke2fs.conf.e2fpsrogs-old and the new /etc/mke2fs.conf file will
be installed. If the existing /etc/mke2fs.conf file does mention
ext4dev, then "make install" will install official mke2fs.conf file as
/etc/mke2fs.conf.e2fsprogs-new and issue a message to the user that
they should look to see if any changes need to be merged.
The mke2fs program will now create the journal in the middle of the
filesystem, since this minimizes seek times on average for fsync-heavy
workloads. In addition, mke2fs will now create journals using extents
for filesystems that support them. This results in a more efficient
encoding for the journal since it eliminates the need for using
indirect blocks.
The mke2fs program will avoid allocating an extra block to the
journal. (Addresses Sourceforge Bug: #1483791)
Mke2fs will correctly enforce the prohibition against features
(specifically read-only features) in revision 0 filesystems. (Thanks
to Benno Schulenberg for noticing this problem.)
Mke2fs previously would occasionaly create some slightly non-optimally
placed inode tables; this bug has been fixed.
The mke2fs and tune2fs programs now print the correct usage message
describing the maximum journal size. (Addresses Debian Bug: #491620)
Add support for setting the default hash algorithm used in b-tree
directories in tune2fs (from a command-line option) or mke2fs (via
mke2fs.conf). In addition, change the default hash algorithm to
half_md4, since it is faster and better.
The blkid library will now recognize MacOS hfsx filesystems, and
correctly extract the label and uuid for hfs, hfsx, and hfsplus
filesystems. (Addresses Sourceforge Feature Requests: #2060292)
The blkid library has improved detection of JFS and HPFS filesystems.
(Addresses Launchpad Bug: #255255)
The blkid library is now much more efficiently handling devicemapper
devices, mainly by no longer using the devicemapper library. This can
speed up access for systems with a large number of device mapper
Blkid had a number of cache validation bugs in libblkid that have been
fixed. (Addresses Debian Bug: #493216)
Resize2fs will now properly close out the "updating inode references"
progress bar so there is a newline printed before printing the final
"resize is successful" message.
Resize2fs will now correctly handle filesystems with extents and/o
uninitialized block groups correctly when file/directory blocks need
to relocated (i.e., when shrinking a filesystem or if the resize_inode
is not present). To support this, the ext2fs library now supports
initializing inode and block bitmaps that are not yet initialized when
allocating them using ext2fs_new_block() and ext2fs_new_inode(). In
addition, e2fs_block_iterate2() can now support changing the location
of interior nodes of an extent tree, and ext2fs_extent_set_bmap() has
been optimized to avoid creating unnecessary new extents when updating
the location of blocks in the extent tree. This will also help out
e2fsck's recovery of obscurely corrupted filesystems with extents,
when blocks are claimed by multiple inodes.
Add support for on-line resizing ext4 filesystem with the flex_bg
filesystem feature. The method for doing so is not optimal, but to do
a better job will require kernel support.
E2fsprogs 1.41.0 intrduced a bug in libext2fs which casued e2image and
debugfs programs to not be able to read e2image files; the signed
vs. unsigned bug in the code which read bitmaps from the e2image has
been fixed. (Addresses Debian Bug: #495830)
Resize2fs is now correctly managing the directory in-use counts when
shrinking filesystems and directory inodes needed to be moved from one
block group to another. This bug has been around since e2fsprogs
1.26, and is largely harmless, but does cause a filesystem corruption
which will be flagged by e2fsck after the filesystem has been shrunk.
E2fsck will no longer issue spurious complaints about the inode size
caused by very large extent-based files, and by blocks reallocated
using fallocate() with the FALLOC_FL_KEEP_SIZE option. (Addresses
Kernel Bugzilla: #11341)
Mke2fs will now set the creation timestamp on the lost+found directory
and the root directory. (More generally, all new inodes created using
the ext2fs library will correctly set the creation timestamp.)
E2fsck now correctly calculates ind/dind/tind statistics in the
presence of extent-based files. In addition, "e2fsck -v" will report
statistics of the depth of extent trees in the filesystem. E2fsck can
also give an inode fragmentation report using "e2fsck -E fragcheck"
which can be useful when debugging the kernel block allocation
Fix support for empty directory blocks in ext4 filesystems with 64k
blocksize filesystems.
E2fsck will now print the depth of corrupt htree directories.
Debugfs's htree command now correctly understands extent-based
directories. It will also print out the minor hash as well as the
major hash.
Debugfs has a new command which will print the supported features of
e2fsprogs, to enable scripts to know whether the installed version of
e2fsprogs can support a specific feature.
Debugfs will now write files using extents for filesystems that
support them.
The error message printed by "tune2fs -I" if the inode size was too
small was rather confusing, so it has been improved. Also, we won't
try to create an undo log until we know that command-line-specified
parameters such as "tune2fs -I <inode size>" are valid.
Given some filesystems found "in the wild" that had non-zero block
group checksums even though the uninit_bg/gdt_sum feature was not
enabled, e2fsck would issue spurious error messages. Teach
ext2fs_group_desc_csum_verify() to ignore the block group checksum
entirely if the feature flag is not set. (Addresses Debian Bug:
The blkid program will now print out a user-friendly listing of all of
the block devices in the system and what they contain when given the
-L option. (Addresses Debian Bug: #490527)
The filefrag program now has a more accurate calculation for the
number of ideal extents. (Addresses Debian Bug: #458306)
The test I/O manager is now enabled by default, but its overhead is
only incurred when it would be enabled via the TEST_IO_FLAGS or
TEST_IO_BLOCK environment variables.
Typographical errors in various program strings and usage messages
have been fixed; most of these were pointed out by the e2fsprogs
message catalog translators. (Thanks, translators!)
Update and clarified various man pages, as well as some typographical
errors in the libext2fs texinfo file.
Fixed various Debian packaging issues --- see debian/changelog for
Add Indonesian and update French, Polish, Dutch, German, Sweedish,
Czech, and Vietnamese Translations. (Addresses Debian Bugs: #313697,
Programmer's Notes
Fix portability problem with the badblocks group; for systems that
don't have nanosleep(), try using usleep() instead.
The "make check" target in the e2fsck directory now sets
LD_LIBRARY_PATH before running the various e2fsck internal library
regression tests.
The crc32 regression test in the e2fsck library is now portable to
greater varienty of environments, including big-endian systems and
when cross-building e2fsprogs for embedded systems. (Addresses
Sourceforge Bug: #2019287)
The ext2fs_extent_set_bmap() had some bugs when setting the first
block in a file, or when replacing a single block extent. Those cases
fortunately were came up relatively rarely when e2fsck was checking
files, but caused some problems when resize2fs was shrinking
extent-based files.
Fix a potential core-dumping bug in libe2p's iterate_on_dir()
Various ext2fs library functions --- ext2fs_block_iterate2(),
ext2fs_initialize() and ext2fs_extent_open() --- now correctly free
allocated memory to avoid memory leaks in all of their error return
Ext2ed was failing to build because masix support had been removed in
the rest of e2fsprogs, so ext2ed no longer has masix support, either.
The configure script now respects the LDFLAGS environment variable if
it is set when configure is called. (Addresses Sourceforge Feature
Request: #1937287)
Libuuid is now more portable to the Windows platform. (Addresses
Sourceforge Feature Request: #1937287)
The configure script now uses AC_MSG_{RESULT,WARN,ERROR} instead of
bare echo commands so that configure flags such as --quiet work
correctly. (Addresses Sourceforge Patches: #2058794)
A few uses of sprintf have been removed from the ext2fs library to
make life easier for bootloaders with a limited libc environment.
(Addresses Sourceforge Bug: #2049120)
The ext2fs_read_inode() checks the validity of the inode number passed
to it earlier, to avoid doing some needless work when it would fail
The ext2fs_open() checks the validity of the blocksize parameter
passed to it earlier, to avoid doing some needless work when it would
fail anyway.
Disable a very annoying automatic " -> %" GNU make rule in the
top-level Makefile. That automatic rule is used to better support
SCCS, but it caused problems for a particular niche distribution which
likes to use files to store the configure options used to
build a package. Unfortuntaely GNU make will use the to
replace the configure script, resulting in a self-inflicted fork bomb
leading to an out-of-memory crash.
To support old GNU C compilers don't use C99/C++ comments, but only
K&R style comments, and don't try to use __builtin_expect if __GNUC__
is less than 3. (__builtin_expect is only supported for gcc versions
2.96 and up, and it's tricky to check for gcc 2.95 vs gcc 2.96; since
this is an optimization, we only try to use __builtin_expect for gcc 3
and up.)
In e2fsck's crc routines, make sure we use WORDS_BIGENDIAN instead of
__LITTLE_ENDIAN, which are only defined by glibc's header files and
hence isn't portable.
For the convenience for some distributions that need a static tune2fs,
the Makefile for misc/ now has a tune2fs.static target.
The ext2fs_block_iterate2() function now supports BLOCK_FLAG_APPEND
for extent-based files
The ext2fs_bmap() function now supports BMAP_ALLOC for extent-based
All source files no longer have any trailing white space.
The io_channel_read_blk64() and io_channel_write_blk64() functions are
now functions instead of C preprocessor macros to provide better
forward compatibility.
The e2fpsrogs translation template now expands the @x abbrevation.
Various namespace leackages in libblkid, libe2p, and libext2fs have
been fixed.
Fix a parallel build problem in e2fsprogs.
E2fsprogs is now more portable to Solaris.
* blkid no longer assumes that the TIOCGSIZE and TIOCGWINSZ ioctl's
are always present.
* Scripts do not assume that /bin/true is always in /bin
* Don't use __FUNCTION__ since Solaris's C99 doesn't support it.
* Flush stdio handles before calling setbuf(), since Solaris will
discard any pending output to the stream.
* Define _XOPEN_SOURCE to 600 since Solaris's header files are very
picky about which C compiler can beused for SUSv3 conformance.
Use of C99 is not compatible with SUSv2 (_XOPEN_SOURCE=500),
and C89 is not compatible with SUSv3 (_XOPEN_SOURCE=600).
Since we need some SUSv3 functions, consistently use SUSv3 so
that e2fsprogs will build on Solaris using c99.
* Solaris C99 does not support varargs C preprocessor macros
* Solaris header files pollute the C namespace if in/netinet.h
is included, which conflicts with e2fsprogs' use of the kmem_cache_t
* Solaris ships with a pathetically ancient shell in /bin/sh so we
avoid the use of various more avanced shell constructs such as $().
The "make rpm" command will now take some extra configure optiosn from
the build environment without needing to patch the source tree.
The ext2fs_add_dir_block() function will now grow the dblist more
aggressively as an optimization to avoid copying the array too often.
The e2fsck_write_bitmaps() will write the block and inode bitmaps
together instead of in two passes.
E2fsprogs 1.41 (July 10, 2008)
Add support for ext4 filesystem features, in particular extents,
uninit_bg, flex_bg, huge_file, and dir_nlink features. Also add
support for checking journal checksums. Debugfs will print new
superblock and inode fields that were defined for ext4. For example,
the nanosecond and i_version fields of an inode, and the
s_min_extra_isize and s_wanted_extra_isize fields from the superblock.
Note: Resize2fs doesn't currently support the combination of flex_bg
and !resize_inode. (Addresses Debian Bug: #388452, #425477)
Tune2fs can support migrating a filesystem from using 128 byte inodes
to 256 byte inodes, so it can take advantage of the full features of
Add support for "undo" support. E2fsck and mke2fs can optionally
record an undo log which can replayed by the program e2undo.
E2fsck could damage a filesystem by trying to relocate inode tables
due to corrupted block group descriptors, where the attempted inode
table relocation would do far more harm than good. E2fsck has been
fixed to detect this these sorts of corrupted block group descriptors
much earlier in e2fsck processing, so it can try to use the backup
superblock and block group descriptors first. This should be a much
better strategy for recovering these types of corrupted filesystems.
(Addresses Sourceforge Bug: #1840291)
E2fsck will display a more understandable message when the last check
field in the superblock is in the future. (Addresses Debian Bug:
E2fsck now performs more extensive and careful checks of extended
attributes stored in the inode.
Enhance mke2fs to print a more explanatory error message when
ext2fs_get_device_size() returns EFBIG. (Addresses Debian Bug:
Fix mke2fs to use a default block size of 4k when formatting an
external journal device. This is done by using a fixed filesystem
type list that consists only of the single filesystem type "journal"
when looking up configuration keys in /etc/mke2fs.conf. (Addresses
Debian Bug: #488663)
Speed up how mke2fs writes the journal data blocks by writing the disk
blocks in larger chunks.
Fix blkid handling of stale devices. Fix a bug which could cause a
core dump while garbage collecting the blkid cache, and assure that
blkid_find_dev_with_tag() never returns a non-existent device. Also,
if a filesystem is found at a new /dev location, eliminate any
duplicate stale entries which can not be verified.
(Addresses Debian Bugs: #487758, #487783)
Add more paranoid checks for LVM volumes and swap partitions in
blkid's probe function, to reduce the chances of false positives.
The mke2fs program now has a much more sophisticated system for
controlling configuration parameters of a newly created filesystem
based on a split filesystem and usage type system. The -t option to
mke2fs was a deprecated alias to -c; it now specifies a filesystem
type (ext2, ext3, ext4, etc.), while the -T option can now be a comma