summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-09-07libext2fs: Round up the bitmap size when allocating a new bitmapTheodore Ts'o1-0/+2
The x86 BT assembly instructure can overshoot the end of a bit array when testing a bit at the end of the bit array, even if it never needs to look at those memory locations. This can cause a spurious segmentation fault. If we allocate a little extra memory, it avoids this problem. See: http://faydoc.tripod.com/cpu/bt.htm This doesn't happen on Linux, probably because of the glibc's malloc() function works, but apparently it's a major problem on the *BSD operating systems. Addresses-Sourceforge-Bug: #2328708 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07mke2fs.8.in: Clarify flex_bg feature descriptionTheodore Ts'o2-27/+39
Add a more explicit description of how specifying the flex_bg file system feature changes the layout of the per-block group metadata. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07tune2fs.8: Document the flex_bg file system option in the man pageTheodore Ts'o1-7/+11
Addresses-Sourceforge-Bug: #2822186 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07resize2fs: fix minimum resize size calculation with flex_bgPeng Tao1-3/+17
When flex_bg is on, calculate_minimum_resize_size() should add more meta blocks for newly added flex_bg. Addresses-RedHat-Bugzilla: #519131 Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-09-07resize2fs: calculate minimal fs size only oncePeng Tao1-1/+1
When running resize2fs -M, no need to recalculate the minimal fs size. Signed-off-by: "Peng Tao" <bergwolf@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-09-06configure.in, configure: Drop --with-cc, --with-ccopts, --with-ldoptsTheodore Ts'o3-107/+58
Remove the configure options --with-cc, --with-ccopts, --with-ldopts, and --with-ld (which never worked), since the first three can be replaced with CC=, CCFLAGS=, and LDFLAGS= on the configure command-line. The default for --with-cc caused the CC= to be overridden even with it was specified to the configure script. Addresses-Sourceforge-Bug: #2843248 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-06dumpe2fs: Print more information about the inline journalTheodore Ts'o1-1/+43
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-01debian: Make sure libblkid1 and libblkid1-dbg have changelogsTheodore Ts'o1-1/+2
Thanks to Scott James Remnant <scott@canonical.com> for pointing this problem and suggesting a fix. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-01e2fsck: Avoid scary failure messages on low-memory systemsTheodore Ts'o1-2/+7
On a very low-memory system, where ext2fs_check_desc() fails because it can't allocate a block bitmap, catch this error and report it immediate. This avoids something like this, which could scare and mislead the user: e2fsck: Group descriptors look bad... trying backup blocks... Media was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Error allocating block bitmap (1): Memory allocation failed e2fsck: aborted Addresses-Debian-Bug: #509529 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-27blkid: support .ko.gz in modules.dep parserKarel Zak1-9/+8
The Linux kernel modules could be compressed, it means modules.dep parser in libblid has to support .ko.gz extension too. (Note, I've talked about this problem with Jon Masters and his suggestion is to exec(/sbin/modinfo) rather than directly parse modules.dep. BTW, the modules.dep file is deprecated.) Address-Red-Hat-Bug: #518572 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-25tune2fs: Fix "tune2fs -j <dev>" for extent-enabled filesystemsTheodore Ts'o1-4/+16
For filesystms that have the extent feature enabled, we need to grab the use EXT2_IOC_GETFLAGS so that we don't accidentally end up trying to request clearing the EXT2_EXTENT_FL, which is not supported and causes the tune2fs -j error out. Also fix the error returning in ext2fs_add_journal_inode() so it returns a proper error code if the fstat() or ioctl() calls fail. Addresses-Launchpad-bug: #416648 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-23mke2fs.conf: Use the feature name "extent" instead of "extents"Theodore Ts'o1-2/+2
The feature name "extent" is documented in mke2fs.conf, although both "extent" and "extents" are accepted by e2fsprogs. Addreses-Debian-Bug: #540111 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-23Fix debian packaging to work correctly on post-Lenny systemsTheodore Ts'o3-25/+27
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-22e2freefrag: Update manpage to include e2fsprogs version and release dateTheodore Ts'o1-1/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-22Update release notes, version string, etc. for E2fsprogs 1.41.9 releaseTheodore Ts'o6-15/+94
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-22make-sparse: Write a zero-byte at the end of the imageTheodore Ts'o1-0/+8
This is necessary to preserve the i_size of the output file; otherwise programs like e2fsck will complain that the filesystem has been truncated. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-20tune2fs: handle bad blocks when resizing inodesAneesh Kumar K.V1-3/+14
When increasing inode size if we find that the new block that we needed to increase the inode table size is a bad block we fail. This make sure we don't end up with a corrupt file system when doing inode resize on a file system having bad blocks. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-20tune2fs: Handle fs meta-data blocks during inode resizeAneesh Kumar K.V1-1/+84
With file system formated for RAID arrays we can have inode bitmap and block bitmap after inode table. Make sure we move them around properly when doing inode resize. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-20tune2fs: Make e2fsprogs handle ENOSPC better with inode resizeAneesh Kumar K.V1-89/+32
This removes the metadata block bitmap and makes the error handling simpler. It also check for the enospc with the correct number needed blocks. Also added specific error messages. We need to run e2undo only if we start modiyfing inode, group desc and inode table. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-19f_illitable_flexbg: Add new testTheodore Ts'o4-0/+35
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-19e2fsck: Add a global latch question for bad group descriptor checksumsTheodore Ts'o2-1/+11
Very often all the block group descriptors will have bad checksums, so don't force the user answer 'yes' many, many times. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-18e2fsck: Only ask to relocate a block group's inode table onceTheodore Ts'o1-1/+2
If multiple blocks of a block group's inode table overlaps with other file system blocks, only ask once for each block group. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-18e2fsck: Teach new_table_block() to allocate new itables/bitmaps with FLEX_BGTheodore Ts'o1-3/+29
If the filesystem feature FLEX_BG is enabled, the inode table and bitmap blocks can be located anywhere in the inode table. So for FLEX_BG filesystems, new_table_block() now tries allocate in the block group's flex_bg first, and if there is no space in the local flex_bg, then try to allocate from the whole filesystem. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-15filefrag: don't print extent header on bmap fallbackEric Sandeen1-5/+8
The extent list header gets printed before we fall back to bmap: # filefrag -v /mnt/test/bar Filesystem type is: 58465342 File size of /mnt/test/bar is 12288 (3 blocks, blocksize 4096) ext logical physical expected length flags <---- HERE Discontinuity: Block 2 is at 17 (was 16) /mnt/test/bar: 2 extents found so delay printing it until we know fiemap is working. (though ideally it'd be nice to have the same verbose output regardless of the interface we used, I think). Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-15filefrag: fix frag count in bmap caseEric Sandeen1-0/+2
The fragmentation count in the bmap case seems to be off by one: /mnt/test/bar: 0 extents found Addresses-Debian-Bug: #540376 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-08-15filefrag: Add option to force use of the FIBMAP ioctlTheodore Ts'o2-4/+13
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09libext2fs: Treat uninitialized parts of bitmaps as unallocatedTheodore Ts'o2-26/+26
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09Add V=1 support when linking e2freefrag in misc/Makefile.inTheodore Ts'o1-2/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09e2freefrag: Take into account the last free extent in the file systemTheodore Ts'o1-17/+30
Fix a bug in e2freefrag where if the last free extent is at the very end of the filesystem, it would be disregarded. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09e2freefrag: Fix to work correctly for file systems with 1kb block sizesTheodore Ts'o1-4/+8
If the file system has a non-zero s_first_data_block, as is the case when the block size is 1kb, e2freefrag would incorrectly try to reference invalid data blocks in the block allocation bitmap. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09e2freefrag: Do not print chunk-related information by defaultTheodore Ts'o2-19/+24
Only print information related to chunk sizes if a chunksize is printed. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09e2freefrag: Clarify e2freefrag's messagesTheodore Ts'o2-11/+11
"Free chunks" is confusing since it has nothing to do with the chunksize; use "free extents" instead. Also add a missing newline in an error message. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-09e2freefrag: Initialize the ext2 error tableTheodore Ts'o1-0/+1
... so error messages are printed correctly Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-08e2fsck: Fix and enhance superblock dates in future problem reportsTheodore Ts'o3-17/+30
Fixed a bug where e2fsck would report that last mount time was in the future when it was really the last write time that was in the future. Also, since people can't seem to believe that (a) their distribution has buggy init scripts, or (b) their CMOS/RTC clock or backup battery is dead, print the incorrect time and the current system time. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-29po: update sv.po (from translationproject.org)Göran Uddeborg2-28/+42
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-28po: update fr.po (from translationproject.org)Samuel Thibault2-28/+42
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-28po: update pl.po (from translationproject.org)Jakub Bogusz2-27/+41
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-28po: update cs.po (from translationproject.org)Petr Pisar2-27/+41
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-27debugfs: Add the new command dump_extents and extent the stat commandTheodore Ts'o3-2/+224
Extend the stat command to display more detailed extent information if the file uses extent mapping instead of displaying the block map using the block_iterate funtion. Add the command dump_extents which displays even more detailed information about an inode's extent tree. This commit is an extension of a patch from Curt Wohlgemuth. Signed-off-by: Curt Wohlgemuth <curtw@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-24e2freefrag: Improve output to include be more like xfs_db's freesp -sAndreas Dilger4-30/+40
Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-24po: update sv.po (from translationproject.org)Göran Uddeborg2-3/+3
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-22e2freefrag: New program which displays how fragmented the free space isTheodore Ts'o5-4/+411
Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-22libext2fs: Use blk_t instead of int in ext2fs_allocate_group_tableTheodore Ts'o1-1/+1
We are using a signed int to store a block number in ext2fs_allocate_group_table. We don't actually do any computation or comparisons using it, so it shouldn't cause any bugs, but it's technically incorrect, and it's possible an overly clever compiler might do something wrong with it. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-20Update debian changelog and RELEASE-NOTES for interim releaseTheodore Ts'o3-1/+44
2009-07-19libext2fs: Avoid creating unneeded new extents in ext2fs_extent_set_bmap()Theodore Ts'o1-25/+93
Avoiding inserting a new extent if it is possible to merge the new block to the beginning or the end of the previous or next extent. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-19libext2fs: Improve debugging printf's in extent.cTheodore Ts'o1-8/+51
Comment out less common debugging printf's, and fix some type warnings. Add high-level debugging printf's for ext2fs_extent_goto(), ext2fs_extent_insert(), ext2fs_extent_delete(), ext2fs_extent_replace() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-19libext2fs: Fix regression in ext2fs_extent_set_bmap()Theodore Ts'o1-4/+5
Commit 0dc291611 introduced a regression when unmapping the first block in an extent. This caused e2fsck -fD to corrupt large directories if the directory has to shrink by more than one block. The problem was set_bmap should only go to a next leaf when setting a first block in an extent, and not when it is unmapping the first block in an extent. Addresses-Debian-Bug: #537510 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-19debian: Allow building with util-linux-ngTheodore Ts'o2-14/+91
If building with util-linux-ng, we will use the external libblkid and libuuid, as well as disabling the internal fsck. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-18mke2fs: Add strings.h include for strcasecmp() declarationTheodore Ts'o1-0/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-18debian/control: fix incorrect use of apostrophe'sScott James Remnant1-4/+4
Signed-off-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>