Whamcloud - gitweb
tools/e2fsprogs.git
15 years agoUpdate release notes, changelog, etc., for e2fsprogs 1.41.1 release v1.41.1
Theodore Ts'o [Mon, 1 Sep 2008 14:39:35 +0000 (10:39 -0400)]
Update release notes, changelog, etc., for e2fsprogs 1.41.1 release

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agofilefrag: Fix calculation of ideal number of extents
Theodore Ts'o [Mon, 1 Sep 2008 19:48:28 +0000 (15:48 -0400)]
filefrag: Fix calculation of ideal number of extents

Fix calculation of the ideal number of extents needed for a file to
take into account sparse files.

In addition, suppress the "this file is extent-based" message unless
verbose mode is enabled.

Addresses-Debian-Bug: #458306

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoEnable test_io debugging by default
Theodore Ts'o [Mon, 1 Sep 2008 15:27:27 +0000 (11:27 -0400)]
Enable test_io debugging by default

Test I/O debugging is incredibly useful for rooting out problems, so
let's enable by default, especially now that its overhead is only
incurred when it is needed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFix debug flag definitions for the resize2fs man page
Theodore Ts'o [Mon, 1 Sep 2008 15:19:35 +0000 (11:19 -0400)]
Fix debug flag definitions for the resize2fs man page

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoOnly use the test_io manager if the right environment variables are set
Theodore Ts'o [Mon, 1 Sep 2008 15:17:29 +0000 (11:17 -0400)]
Only use the test_io manager if the right environment variables are set

In order to make it possible for the test_io manager to be compiled in
by default, make all of the programs that might try to use it to only
do so if the environment variables TEST_IO_FLAGS and TEST_IO_DEBUG are
set.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibe2p: Fix potential core-dumping bug in iterate_on_dir()
Theodore Ts'o [Mon, 1 Sep 2008 13:38:32 +0000 (09:38 -0400)]
libe2p: Fix potential core-dumping bug in iterate_on_dir()

iterate_on_dir() can try to copy too much data from the directory
entry, resulting in a crash.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoUpdate e2fsprogs.pot translation template
Theodore Ts'o [Sat, 30 Aug 2008 03:36:08 +0000 (23:36 -0400)]
Update e2fsprogs.pot translation template

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoUpdate makefile dependency for lib/e2p/Makefile.in
Theodore Ts'o [Sat, 30 Aug 2008 03:26:26 +0000 (23:26 -0400)]
Update makefile dependency for lib/e2p/Makefile.in

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agomke2fs: Allow the default hash algorithm in mke2fs.conf
Theodore Ts'o [Sat, 30 Aug 2008 01:39:36 +0000 (21:39 -0400)]
mke2fs: Allow the default hash algorithm in mke2fs.conf

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agotune2fs: Add support for setting the default hash algorithm for htree
Theodore Ts'o [Sat, 30 Aug 2008 01:21:19 +0000 (21:21 -0400)]
tune2fs: Add support for setting the default hash algorithm for htree

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: Fix postinstall scripts when the user/group is in LDAP
Theodore Ts'o [Fri, 29 Aug 2008 23:53:34 +0000 (19:53 -0400)]
debian: Fix postinstall scripts when the user/group is in LDAP

Addresses-Debian-Bug: #497010

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Fri, 29 Aug 2008 12:49:57 +0000 (08:49 -0400)]
po: update de.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agotune2fs, mke2fs: Change default directory hash algorithm to half_md4
Theodore Ts'o [Fri, 29 Aug 2008 03:09:35 +0000 (23:09 -0400)]
tune2fs, mke2fs: Change default directory hash algorithm to half_md4

The half_md4 algorithm is faster and more collision resistant.  Let's
switch to it as the default.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoresize2fs: Allow (non-optimal) on-line resizing for flex_bg filesystems
Theodore Ts'o [Thu, 28 Aug 2008 17:24:12 +0000 (13:24 -0400)]
resize2fs: Allow (non-optimal) on-line resizing for flex_bg filesystems

The current method of adding one block group at a time to a mounted
filesystem means it is impossible to accomodate the flex_bg allocation
method of placing the metadata together in a single block group.  For
now we "fix" this issue by using the traditional layout for new block
groups, where each block group is self-contained and contains its own
bitmap blocks and inode tables.  This means we don't get the layout
advantages of flex_bg in the new block groups, but at least it allows
on-line resizing to function.

Long term, we will need to create a new ioctl which does much more of
the resizing work in the kernel.

We also fix a bug in the ext3/ext4 ioctl fallback code so we stop
trying the ext3 ioctl for every single block group when resizing an
ext4 filesystem.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFurther optimize journal placement for flex_bg filesystems
Theodore Ts'o [Thu, 28 Aug 2008 14:20:43 +0000 (10:20 -0400)]
Further optimize journal placement for flex_bg filesystems

If the number of block groups is greater than half the flex_bg size,
the journal we be placed in the flex_bg super-group which is closest
to the mid-point of the filesystem, and in the first free block group
beyond where the metadata for the flex_bg is stored.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: Change symbols files to only use uptream versions numbers
Theodore Ts'o [Thu, 28 Aug 2008 13:43:18 +0000 (09:43 -0400)]
debian: Change symbols files to only use uptream versions numbers

As suggested by lintian

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFix breakage caused by commit da17e370 (missing dependency in Makefile)
Theodore Ts'o [Thu, 28 Aug 2008 11:15:52 +0000 (07:15 -0400)]
Fix breakage caused by commit da17e370 (missing dependency in Makefile)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoUpdate e2fsprogs.pot translation template file
Theodore Ts'o [Thu, 28 Aug 2008 03:18:29 +0000 (23:18 -0400)]
Update e2fsprogs.pot translation template file

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoRemove trailing whitespace for the entire source tree
Theodore Ts'o [Thu, 28 Aug 2008 03:07:54 +0000 (23:07 -0400)]
Remove trailing whitespace for the entire source tree

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoImprove future compatibility for the 64-bit I/O channel functions
Theodore Ts'o [Thu, 28 Aug 2008 01:46:26 +0000 (21:46 -0400)]
Improve future compatibility for the 64-bit I/O channel functions

Provide a C language wrapper function for io_channel_read_blk64() and
io_channel_write_blk64() instead of using a C preprocessor macro, with
an fallback to the old 32-bit functions if an application-provided I/O
channel manager doesn't supply 64-bit method functions and the block
numbers can fit in 32-bit integer.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoUpdate @-expansion script for the I18N translation template
Theodore Ts'o [Wed, 27 Aug 2008 23:00:50 +0000 (19:00 -0400)]
Update @-expansion script for the I18N translation template

Update the @-expansion script to support the @x -> extent expansion

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoBuild lib/ext2fs/ext2_err.h early to avoid parallel build problems
Theodore Ts'o [Wed, 27 Aug 2008 22:44:50 +0000 (18:44 -0400)]
Build lib/ext2fs/ext2_err.h early to avoid parallel build problems

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebugfs: Use extents when writing a file if the filesystem supports them
Theodore Ts'o [Wed, 27 Aug 2008 22:38:47 +0000 (18:38 -0400)]
debugfs: Use extents when writing a file if the filesystem supports them

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Fix ext2fs_bmap() to work with extents and BMAP_ALLOC
Theodore Ts'o [Wed, 27 Aug 2008 22:37:11 +0000 (18:37 -0400)]
libext2fs: Fix ext2fs_bmap() to work with extents and BMAP_ALLOC

Fix bugs with extents support when allocating blocks.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_block_iterate2: Fix memory leak on error paths
Theodore Ts'o [Wed, 27 Aug 2008 21:50:14 +0000 (17:50 -0400)]
ext2fs_block_iterate2: Fix memory leak on error paths

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoIf the filesystem supports extents create an extent-based journal inode
Theodore Ts'o [Wed, 27 Aug 2008 19:50:44 +0000 (15:50 -0400)]
If the filesystem supports extents create an extent-based journal inode

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_block_iterate2: Add BLOCK_FLAG_APPEND support for extent-based files
Theodore Ts'o [Wed, 27 Aug 2008 19:17:36 +0000 (15:17 -0400)]
ext2fs_block_iterate2: Add BLOCK_FLAG_APPEND support for extent-based files

This is needed so that extent-based inodes (including a journal inode)
can be created via block_iterate.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoCreate the journal in the middle of the filesystem
Theodore Ts'o [Wed, 27 Aug 2008 19:11:28 +0000 (15:11 -0400)]
Create the journal in the middle of the filesystem

This speeds up access to the journal by eliminating worst-case seeks
from one end of the disk to another, which can be quite common in very
fsync-intensive workloads if the file is located near the end of the
disk, and the journal is located the beginning of the disk.

In addition, this can help eliminate journal fragmentation when
flex_bg is enabled, since the first block group has a large amount of
metadata.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_mkjournal(): Don't allocate an extra block to the journal
Theodore Ts'o [Wed, 27 Aug 2008 20:23:30 +0000 (16:23 -0400)]
ext2fs_mkjournal(): Don't allocate an extra block to the journal

Addresses-Sourceforge-Bug: 1483791

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Give a priority bonus to "leaf" devicemapper devices
Theodore Ts'o [Wed, 27 Aug 2008 06:24:51 +0000 (02:24 -0400)]
libblkid: Give a priority bonus to "leaf" devicemapper devices

Give a boost to dm devices which are not used to build other dm
devices, since "leaf" devices are generally more likely to be
interesting as devices to mount.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Unexport the private symbol blkid_devdirs
Theodore Ts'o [Wed, 27 Aug 2008 04:00:44 +0000 (00:00 -0400)]
libblkid: Unexport the private symbol blkid_devdirs

blkid_devdirs was defined in blkidP.h and was never intended to be
used outside of the library.  Since it no longer needs to be shared
across object files, rename it and turn it into a static variable.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoRemove use of devmapper library by the blkid library
Theodore Ts'o [Wed, 27 Aug 2008 03:56:00 +0000 (23:56 -0400)]
Remove use of devmapper library by the blkid library

The devmapper library is no longer needed given commit f4e89bcd.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Optimize devicemapper support
Theodore Ts'o [Tue, 26 Aug 2008 12:13:56 +0000 (08:13 -0400)]
libblkid: Optimize devicemapper support

This commit works by removing all calls from libdevmapper altogether,
and using the standard support for "normal" non-dm devices.

It depends on dm devices being placed in /dev/mapper (but the previous
code had this dependency anyway), and /proc/partitions containing dm
devices.

We don't actually rip out the libdevmapper code in this commit, but
just disable it via #undef HAVE_DEVMAPPER, just so it's easier to
review and understand the fundamental code changes.  A subsequent
commit will remove the libdevmapper code, as well as unexport
the blkid_devdirs string array.

Thanks to Karel Zak for inspiring me to look at the dm code in blkid,
so I could realize how much it deserved to ripped out by its roots.  :-)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoAdd support for with empty directory blocks in 64k blocksize filesystems
Theodore Ts'o [Tue, 26 Aug 2008 01:08:19 +0000 (21:08 -0400)]
Add support for with empty directory blocks in 64k blocksize filesystems

The rec_len field in the directory entry is 16 bits, so if the
filesystem is completely empty, rec_len of 0 is used to designate
65536, for the case where the directory entry takes the entire 64k
block.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: Add dpkg-gensymbols support to track ABI changes to the libraries
Theodore Ts'o [Mon, 25 Aug 2008 04:00:35 +0000 (00:00 -0400)]
debian: Add dpkg-gensymbols support to track ABI changes to the libraries

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Fix namespace leakage of unicode_16be_to_utf8
Theodore Ts'o [Mon, 25 Aug 2008 03:34:13 +0000 (23:34 -0400)]
libblkid: Fix namespace leakage of unicode_16be_to_utf8

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibe2p: Fix namespace leakage of os_tab
Theodore Ts'o [Mon, 25 Aug 2008 02:46:31 +0000 (22:46 -0400)]
libe2p: Fix namespace leakage of os_tab

Make os_tab static, since there's no reason it should be exposed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Fix namespace leakage of crc16 functions
Theodore Ts'o [Mon, 25 Aug 2008 02:44:33 +0000 (22:44 -0400)]
libext2fs: Fix namespace leakage of crc16 functions

Rename crc16 to ext2fs_crc16, and make crc16_table static, since
there's not reason it should be exposed at all.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoRemove trailing space from the description of the r_move_itable test
Theodore Ts'o [Mon, 25 Aug 2008 01:58:03 +0000 (21:58 -0400)]
Remove trailing space from the description of the r_move_itable test

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agofix e2fsck error message for bad htree depth
Andreas Dilger [Sun, 24 Aug 2008 03:45:11 +0000 (21:45 -0600)]
fix e2fsck error message for bad htree depth

Fix error message to print the depth of a corrupt htree directory.

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Kalpak Shah <kalpak.shah@sun.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoadd debugfs command to print known features
Andreas Dilger [Sun, 24 Aug 2008 03:42:46 +0000 (21:42 -0600)]
add debugfs command to print known features

Print out the currently supported features of e2fsprogs/libext2fs
via a new "debugfs supported_features" command.  This helps scripts
to know whether it is possible to try and enable specific features
in the filesystem.

Signed-off-by: Kalpak Shah <kalpak.shah@sun.com>
Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoallow integrating the "make rpm" command into a build system
Andreas Dilger [Mon, 25 Aug 2008 01:03:17 +0000 (21:03 -0400)]
allow integrating the "make rpm" command into a build system

Allow "make rpm" to take some extra configure options from the build
environment without having to patch the code.

Build the tarball in a temporary directory instead of the e2fsprogs
source directory.

Signed-off-by: Michael MacDonald <Michael.Macdonald@Sun.COM>
Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: grow dblist more aggressively
Andreas Dilger [Sun, 24 Aug 2008 03:17:17 +0000 (21:17 -0600)]
libext2fs: grow dblist more aggressively

Make the dblist grow more quickly when many directory blocks are added,
otherwise the array has to get copied too often, which is slow when it
is large.

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoe2fsck: Change comments in problem array to match what is printed
Andreas Dilger [Mon, 25 Aug 2008 00:38:22 +0000 (20:38 -0400)]
e2fsck: Change comments in problem array to match what is printed

This makes it easier to locate the problem code in question.

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFix miscellaneous compile warnings
Andreas Dilger [Mon, 25 Aug 2008 00:37:39 +0000 (20:37 -0400)]
Fix miscellaneous compile warnings

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoDocument the extent and huge file flags in the chattr.1.in man page
Andreas Dilger [Mon, 25 Aug 2008 00:24:23 +0000 (20:24 -0400)]
Document the extent and huge file flags in the chattr.1.in man page

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck_write_bitmaps() optimization
Andreas Dilger [Sun, 24 Aug 2008 02:56:07 +0000 (20:56 -0600)]
e2fsck_write_bitmaps() optimization

This patch changes the e2fsck_write_bitmaps() function to write out the
block and inode bitmaps together, instead of writing them in two passes.

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agodebian: Add uuid-runtime.lintian-overrides
Theodore Ts'o [Sun, 24 Aug 2008 05:20:49 +0000 (01:20 -0400)]
debian: Add uuid-runtime.lintian-overrides

I want to make sure the uuidd daemon is shutdown before removing
the package.  Since the uuidd daemon is provided by the uuid-runtime
package, and I *know* exactly where it is, and I ***don't*** want the
script to be confused by some other pathname being used by the local
administrator, I specify an explicit pathname.  In addition, given the
explicit test to make sure /usr/sbin/uuidd exists, it seems non-sensical
to remove the prepended path.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: add libuuid1.lintian-overrides
Theodore Ts'o [Sun, 24 Aug 2008 05:18:55 +0000 (01:18 -0400)]
debian: add libuuid1.lintian-overrides

The libuuid1.postinst script doesn't really call adduser; it just
checks the adduser config file, if it exists.  The lintain maintainers
agree this is a spurious warning, and it will be fixed eventually.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: Remove e2fsck-static.lintian-overrides
Theodore Ts'o [Sun, 24 Aug 2008 05:17:55 +0000 (01:17 -0400)]
debian: Remove e2fsck-static.lintian-overrides

This override is no longer necessary since lintian excludes foo.static
binaries from the static binary test.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFix mke2fs man page to escape all minus signs
Theodore Ts'o [Sun, 24 Aug 2008 05:04:43 +0000 (01:04 -0400)]
Fix mke2fs man page to escape all minus signs

Option specifiers must be escaped so the are printed as minus signs
(U+002D) instead of hyphens (U+2010).  Hence "mke2fs -t ext4" must be
expressed as "mke2fs \-t ext4" instead.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebian: Add debian/watch file
Theodore Ts'o [Sun, 24 Aug 2008 04:45:15 +0000 (00:45 -0400)]
debian: Add debian/watch file

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agodebugfs: Print the progname instead of argv[0] in error message
Manish Katiyar [Sat, 23 Aug 2008 16:58:05 +0000 (22:28 +0530)]
debugfs: Print the progname instead of argv[0] in error message

Trivial fix to print the progname instead of argv[0] in error message.

Signed-off-by: "Manish Katiyar" <mkatiyar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agodebugfs: Close the file handle and return in case of errors
Manish Katiyar [Sat, 23 Aug 2008 16:11:25 +0000 (21:41 +0530)]
debugfs: Close the file handle and return in case of errors

Close the filehandle and return in case if we are unable to expand the
directory during write.

Signed-off-by: "Manish Katiyar" <mkatiyar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agolibblkid: Strengthen the JFS probe routine
Theodore Ts'o [Sun, 24 Aug 2008 02:27:22 +0000 (22:27 -0400)]
libblkid: Strengthen the JFS probe routine

Check to make sure a JFS filesystem is really correct by checking the
relationship between the following fields in the JFS superblock:
s_bsize, s_l2bsize, s_pbsize, s_l2pbsize, and s_l2bfactor.  Thanks to
Lesh Bogdanow for this suggestion.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Fix false detection of DFSee created filesystems.
Theodore Ts'o [Sun, 24 Aug 2008 02:11:01 +0000 (22:11 -0400)]
libblkid: Fix false detection of DFSee created filesystems.

OS/2 and DFSee creates a pseudo FAT-12/16 header in the first 512
bytes of a filesystem which looks enough like a FAT-12/16 to fool
blkid.  Part of this is because we don't require ms_magic or vs_magic
to be the strings "FAT12 ", "FAT16 ", or "FAT32 ", since some FAT
filesystem formatters don't set ms_magic or vs_magic.  To address
this, we explicitly test for "JFS     " and "HPFS    " in ms_magic,
and if they are found, we assume the filesystem is definitely not
a FAT filesystem.

Addresses-Launchpad-Bug: #255255

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoInterim update of the debian/changelog and the release notes
Theodore Ts'o [Sat, 23 Aug 2008 15:43:08 +0000 (11:43 -0400)]
Interim update of the debian/changelog and the release notes

This is in preparation for an e2fsprogs 1.41.1 release.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Fix memory leak in ext2fs_initialize().
Manish Katiyar [Sat, 23 Aug 2008 11:41:07 +0000 (17:11 +0530)]
libext2fs: Fix memory leak in ext2fs_initialize().

Below patch ensures that cleanup is done properly in ext2fs_initialize
from all return paths in case of errors.

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2ed: Remove masix support
Manish Katiyar [Sat, 23 Aug 2008 11:51:27 +0000 (07:51 -0400)]
ext2ed: Remove masix support

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agomke2fs: Issue a warning if the mke2fs.conf file wasn't updated
Theodore Ts'o [Sat, 23 Aug 2008 01:57:29 +0000 (21:57 -0400)]
mke2fs: Issue a warning if the mke2fs.conf file wasn't updated

Many people are forgetting to update their mke2fs.conf file, and this
means that filesystems aren't getting created with the proper features
enabled.  So detect this case and issue a warning.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck: Portability fix: Use WORDS_BIGENDIAN instead of __LITTLE_ENDIAN
Theodore Ts'o [Fri, 22 Aug 2008 23:19:18 +0000 (19:19 -0400)]
e2fsck: Portability fix: Use WORDS_BIGENDIAN instead of __LITTLE_ENDIAN

__LITTLE_ENDIAN is set by the glibc headers, and isn't portable.  We
should be using WORDS_BIGENDIAN, which is set by autoconf.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Enhance support for MacOS's hfs, hfsplus, and hfsx filesystems
Theodore Ts'o [Fri, 22 Aug 2008 20:45:44 +0000 (16:45 -0400)]
libblkid: Enhance support for MacOS's hfs, hfsplus, and hfsx filesystems

Add detection for hfsx filesystems.  Add label and uuid detetion for
hfs, hfsplus, and hfsx.

Addresses-Sourceforge-Feature-Requests: #2060292

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: Fix potential crash if blkid cache is out of date when probing
Theodore Ts'o [Fri, 22 Aug 2008 16:43:14 +0000 (12:43 -0400)]
libblkid: Fix potential crash if blkid cache is out of date when probing

Fix bug added in 57926c8c5566f0ef5b77db326d58aa0643cf6270

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoconfigure.in: Respect LDFLAGS environment variable if passed into configure
Theodore Ts'o [Fri, 22 Aug 2008 16:26:07 +0000 (12:26 -0400)]
configure.in: Respect LDFLAGS environment variable if passed into configure

If the --with-ldopts option is not passed on the command line, respect
the LDFLAGS environment variable instead of forcing LDFLAGS to be
unset.  "configure --help" documents LDFLAGS as part of the standard
configure script calling convention.

Addresses-Sourceforge-Feature-Request: #1937287

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibuuid: Windows portability fixes
Theodore Ts'o [Fri, 22 Aug 2008 16:15:56 +0000 (12:15 -0400)]
libuuid: Windows portability fixes

Make the uuid library (more) portable for Windows.

Addresses-Sourceforge-Feature-Request: #1937287

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoconfigure.in: use AC_MSG_{RESULT,WARN,ERROR} instead of echo
Theodore Ts'o [Fri, 22 Aug 2008 14:52:42 +0000 (10:52 -0400)]
configure.in: use AC_MSG_{RESULT,WARN,ERROR} instead of echo

This gives us standard behavior when using flags such as --quiet, and
gives us standard warning output when showing warnings and errors.

Addresses-Sourceforge-Patches: #2058794

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Replace use of sprintf with strcpy/strcat to help SILO
Theodore Ts'o [Fri, 22 Aug 2008 14:37:18 +0000 (10:37 -0400)]
libext2fs: Replace use of sprintf with strcpy/strcat to help SILO

Some bootloaders, like SILO, don't provide sprintf in their limited
bootloader environment.  Since the uses in rw_bitmaps.c is only doing
sprintf("foo %s"), it's easy to replace that usage with strcpy/strcat.

Addresses-Sourceforge-Bug: #2049120

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoresize2fs: Make sure we close out the progress bar in pass #4
Theodore Ts'o [Fri, 22 Aug 2008 13:26:26 +0000 (09:26 -0400)]
resize2fs: Make sure we close out the progress bar in pass #4

This fixes a cosemtic issue where we don't complete the progress bar
and issue a newline before printing the final resize successful
message.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agopo: Add Indonesian translation from the Translation Project
Theodore Ts'o [Fri, 22 Aug 2008 07:26:26 +0000 (03:26 -0400)]
po: Add Indonesian translation from the Translation Project

15 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Fri, 22 Aug 2008 07:22:50 +0000 (03:22 -0400)]
po: update de.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoresize2fs: supply block allocator for extents function
Theodore Ts'o [Fri, 22 Aug 2008 07:07:53 +0000 (03:07 -0400)]
resize2fs: supply block allocator for extents function

In the rare case where new blocks are needed while mutating an extent
tree, supply a specialized block allocator so that extent_node_split()
allocates valid blocks for the interior nodes of the extent tree.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoresize2fs: Fix support for filesystems with the uninit_bg feature
Theodore Ts'o [Fri, 22 Aug 2008 07:03:42 +0000 (03:03 -0400)]
resize2fs: Fix support for filesystems with the uninit_bg feature

If the filesystem has the uninit_bg feature, then parts of the block
and inode bitmap may not be initialized.  Teach resize2fs how to deal
with these case appropriately.  (Most of these fixes were fortunately
not necessary for the common case where the resize_inode is present to
reserve space, and where the filesystem is being expanded instead of
being shrunk.)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Add support for uninit_bg feature to allocation functions
Theodore Ts'o [Fri, 22 Aug 2008 06:52:12 +0000 (02:52 -0400)]
libext2fs: Add support for uninit_bg feature to allocation functions

If the allocation functions need to allocate out of a block group
where the inode and/or block bitmaps have not yet been initialized,
initialize them so ext2fs_new_block() and ext2fs_new_inode() work
correctly.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_block_iterate2(): Support changing interior nodes of an extent tree
Theodore Ts'o [Fri, 22 Aug 2008 06:50:02 +0000 (02:50 -0400)]
ext2fs_block_iterate2(): Support changing interior nodes of an extent tree

Resize2fs needs to be able to relocate the interior nodes of an extent
tree.  Add support for this feature via ext2fs_extent_replace().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_extent_set_bmap(): Avoid creating extra extents for resize2fs
Theodore Ts'o [Fri, 22 Aug 2008 06:46:16 +0000 (02:46 -0400)]
ext2fs_extent_set_bmap(): Avoid creating extra extents for resize2fs

When resize2fs moves blocks belonging to an inode, it will call
ext2fs_extent_set_bmap() for logical blocks 0, 1, 2, 3, ...

Optimize for this calling pattern so we don't end up creating a
separate extent for each block.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoext2fs_extent_set_bmap(): fix bug when replacing a single block extent
Theodore Ts'o [Fri, 22 Aug 2008 06:39:46 +0000 (02:39 -0400)]
ext2fs_extent_set_bmap(): fix bug when replacing a single block extent

When replacing a single block extent, make sure we set or clear the
uninitialized extent flag as requested by the caller.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoFix ext2fs_extent_set_bmap() when setting a block before the first extent
Theodore Ts'o [Fri, 22 Aug 2008 06:32:28 +0000 (02:32 -0400)]
Fix ext2fs_extent_set_bmap() when setting a block before the first extent

When setting a logical block which is before the first extent in the
extent tree, make sure the new extent goes in front, at the very
beginning of the extent tree.  This fixes a bug where previously the
new extent would be inserted out of order in this case.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibext2fs: Fix reading bitmaps from e2image files
Theodore Ts'o [Thu, 21 Aug 2008 21:56:44 +0000 (17:56 -0400)]
libext2fs: Fix reading bitmaps from e2image files

Fix a signed vs. unsigned bug that was accidentally introduced in
commit f1f115a7, which was introduced in e2fsprogs 1.41.0

Addresses-Debian-Bug: #495830

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoresize2fs: Fix double bumping of directory in-use counts
Theodore Ts'o [Mon, 18 Aug 2008 03:20:16 +0000 (23:20 -0400)]
resize2fs: Fix double bumping of directory in-use counts

When moving directories into new block groups (which would only happen
when shrinking a filesystem), resize2fs would increase the directory
in-use count by 2 times the necessary value, due to a change in
ext2fs_inode_alloc_stats() made in e2fsprogs 1.26.  This is largely
harmless, but it does result in a filesystem corruption for e2fsck to
fix.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck: fix spurious complaints about i_size caused by preallocated blocks
Theodore Ts'o [Mon, 18 Aug 2008 03:14:30 +0000 (23:14 -0400)]
e2fsck: fix spurious complaints about i_size caused by preallocated blocks

For inodes with blocks preallocated with FALLOC_FL_KEEP_SIZE, e2fsck
complained about i_size being too small.  Fix this.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck: Fix max size calculation for extent files
Theodore Ts'o [Sun, 17 Aug 2008 13:41:38 +0000 (09:41 -0400)]
e2fsck: Fix max size calculation for extent files

A misunderstanding C's precedence rules and the meaning of
s_log_block_size meant that we were capping the maximum size of
extent-based files at 8GB instead of the 64TB that it should be for
filesystems with 4k block sizes.

Addresses-Kernel-Bugzilla: #11341

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Sat, 16 Aug 2008 16:26:28 +0000 (12:26 -0400)]
po: update nl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agolibext2fs : Fix memory leaks in ext2fs_extent_open()
Manish Katiyar [Fri, 15 Aug 2008 20:56:43 +0000 (02:26 +0530)]
libext2fs : Fix memory leaks in ext2fs_extent_open()

Memory allocated for the ext2_extent_handle is not getting freed from
all the return paths in case of error. Below patch fixes it.

Signed-off-by: "Manish Katiyar" <mkatiyar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoFix a typo in lib/e2p/Makefile.in
Li Zefan [Wed, 6 Aug 2008 09:09:11 +0000 (17:09 +0800)]
Fix a typo in lib/e2p/Makefile.in

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agolibext2fs: Initialize unset inode timestamps when writing a new inode
Theodore Ts'o [Thu, 14 Aug 2008 18:30:05 +0000 (14:30 -0400)]
libext2fs: Initialize unset inode timestamps when writing a new inode

As Li Zefan <lizf@cn.fujitsu.com> reported, the creation timestamp was
not getting set on the lost+found inode.  This patch makes sure all of
the timestamps are appropriately set.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibblkid: On the man page, replace empty references with an existing one.
Benno Schulenberg [Thu, 31 Jul 2008 20:49:19 +0000 (22:49 +0200)]
libblkid: On the man page, replace empty references with an existing one.

And update the FSF's address.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoblkid: On the man page, show option arguments in the descriptions.
Benno Schulenberg [Thu, 31 Jul 2008 20:25:36 +0000 (22:25 +0200)]
blkid: On the man page, show option arguments in the descriptions.

Also rephrase two sentences and add a comma or two.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agomke2fs: Fix several typos in the man page.
Benno Schulenberg [Wed, 30 Jul 2008 22:06:36 +0000 (00:06 +0200)]
mke2fs: Fix several typos in the man page.

Also add the missing argument of the -M option, replace the mistaken
[libdefaults] section header with [defaults], and slightly rephrase
two or three sentences.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agoe2fsck: Fix ind/dind/tind statistics and add extent depth statistics
Theodore Ts'o [Thu, 14 Aug 2008 13:48:07 +0000 (09:48 -0400)]
e2fsck: Fix ind/dind/tind statistics and add extent depth statistics

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck: Fix signed/unsigned error in fragcheck report for indirect blocks
Theodore Ts'o [Wed, 13 Aug 2008 02:11:02 +0000 (22:11 -0400)]
e2fsck: Fix signed/unsigned error in fragcheck report for indirect blocks

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsck: Fix check to see if an extent-based file is fragmented
Theodore Ts'o [Mon, 11 Aug 2008 02:43:24 +0000 (22:43 -0400)]
e2fsck: Fix check to see if an extent-based file is fragmented

Also added support for "e2fsck -E fragcheck" which issues a
comprehensive report of discontiguous file extents.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoblkid: Fix probing logic so we find renamed devices
Theodore Ts'o [Sun, 10 Aug 2008 02:37:58 +0000 (22:37 -0400)]
blkid: Fix probing logic so we find renamed devices

This fixes a bug where if there is an entry in the /etc/blkid.tab file
for a particular device (major, minor) number but the filename does
not exist, blkid wouldn't try to find the correct filename.

Addresses-Debian-Bug: #493216

15 years agodebugfs: Fix htree command so it works with extent-based directories
Theodore Ts'o [Fri, 8 Aug 2008 15:56:07 +0000 (11:56 -0400)]
debugfs: Fix htree command so it works with extent-based directories

Also add support to dump out the minor hash value in addition to the
major hash.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agotune2fs: Improve the error messages for tune2fs -I
Theodore Ts'o [Sun, 27 Jul 2008 20:00:48 +0000 (16:00 -0400)]
tune2fs: Improve the error messages for tune2fs -I

If the current inode size is less than or equal to the requested inode
size, either explain that shrinking the inode size is not supported,
or that the inode is already the requested size.  Also, open the
filesystem provisionally first to do the inode size check and don't
setup up the undo log until we know that we're actually going to
perform the inode resizing operation.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agomke2fs/tune2fs: Fix max journal size in message to be consistent/correct
Theodore Ts'o [Fri, 25 Jul 2008 16:41:32 +0000 (12:41 -0400)]
mke2fs/tune2fs: Fix max journal size in message to be consistent/correct

Addresses-Debian-Bug: #491620

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agopo: update sv.po (from translationproject.org)
Göran Uddeborg [Thu, 24 Jul 2008 15:59:22 +0000 (11:59 -0400)]
po: update sv.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Thu, 24 Jul 2008 15:59:22 +0000 (11:59 -0400)]
po: update nl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Thu, 24 Jul 2008 15:59:21 +0000 (11:59 -0400)]
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 years agopartinfo: Fix usage message
Theodore Ts'o [Wed, 23 Jul 2008 20:50:04 +0000 (16:50 -0400)]
partinfo: Fix usage message

Thanks to Göran Uddeborg for pointing this out.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agoe2fsprogs: Fix tst_extents output on bigendian machine.
Aneesh Kumar K.V [Fri, 18 Jul 2008 12:05:40 +0000 (17:35 +0530)]
e2fsprogs: Fix tst_extents output on bigendian machine.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>