- 04 Aug, 2007 2 commits
-
-
Theodore Ts'o authored
Signed-off-by:
Andreas Dilger <adilger@clusterfs.com> Signed-off-by:
Girish Shilamkar <girish@clusterfs.com> Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
This patch instruments the libext2fs unix I/O manager and adds bytes read/written and data rate to e2fsck -tt pass/overall timing output. Signed-off-by:
Jim Garlick <garlick@llnl.gov> Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 03 Aug, 2007 2 commits
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 23 Jul, 2007 3 commits
-
-
Theodore Ts'o authored
Create new functions ext2fs_{set,get}_{inode,block}_bitmap_range() which allow programs like e2fsck, dumpe2fs, etc. to get and set chunks of the bitmap at a time. Move the representation details of the 32-bit old-style bitmaps into gen_bitmap.c. Change calls in dumpe2fs, mke2s, et. al to use the new abstractions. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Move the contents of rs_bitmap.c and cmp_bitmaps.c into gen_bitmap.c and bitmaps.c. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Move the 32-bit specific bitmap code into gen_bitmap.c, and the high-level interfaces into bitmaps.c. Eventually we'll move the new-style bitmap code into gen_bitmap64.c, but first we need to isolate the code with knowledge of the bitmap internals in one place first. In this patch we move allocation, free, copy, clear, set_padding, and fudge_end function into gen_bitmap.c, and make sure that the bitmaps.c and bitops.c no longer have any knowledge of the bitmap internals. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 22 Jul, 2007 7 commits
-
-
Theodore Ts'o authored
Create ext2fs_get_generic_bitmap_{start,end}() and use them for inline functions. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Also uninline ext2fs_fast_{mark,unmark,test}_block_bitmap_range() and use the generic routines. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
This changes ext2fs_fast_{mark,unmark,test}_{inode,block}_bitmap() to be inline functions which calls ext2fs_{mark,unmark,test}_generic_bitmap(). This is part of the preparation to support the new-style bitmaps. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Eric Sandeen authored
The test in ext2fs_check_desc() is off by one; if the inode table goes all the way to the last block of the block group, it will falsely assert that it has extended past it. The last block of a range is start + len -1, not start + len. You can create (valid) filesystems that will cause e2fsck to complain via one of the following mkfs commands: mkfs.ext3 -F -b 1024 /dev/sdb1 2046000000 mke2fs -j -F -b 4096 -m 0 -N 5217280 /mnt/test/fsfile2 327680 mkfs.ext2 -F -b 1024 -m 0 -g 256 -N 3744 fsfile 1024 Addresses-Red-Hat-Bugzilla: #214765 Signed-off-by:
Eric Sandeen <sandeen@redhat.com> Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
For some odd geometries*, mkfs will try to allocate inode tables off the end of the block group and fail, rather than warning that too many inodes have been requested. This is because when ext2fs_initialize calculates metadata overhead, it is only adding in group descriptor blocks and the superblock if the *last* bg contains them - but the first bg also has all of the various metadata bits taking up space. We need to calculate the overhead both for the first block group and the last block groups separately, since the two different tests need to know what the overheads are for those two cases, which may be different. *for example "mke2fs -b 1024 -m 0 -g 256 -N 3745 fsfile 1024" (Note, the test here is a little funky; the expected output is actually a mkfs failure - but a proper failure instead of the allocator catching the problem at the last minute) Addresses-Red-Hat-Bugzilla: #241767 Signed-off-by:
Eric Sandeen <sandeen@redhat.com> Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 18 Jul, 2007 2 commits
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Eric Sandeen authored
We need to set t->i_file_acl before we test it in ext2fs_inode_data_blocks() Signed-off-by:
Eric Sandeen <sandeen@redhat.com> Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 14 Jul, 2007 1 commit
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 12 Jul, 2007 2 commits
-
-
Theodore Ts'o authored
Addresses-Launchpad-bug: #47817 Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 11 Jul, 2007 1 commit
-
-
Theodore Ts'o authored
A recent change to e2fsck_add_dir_info() to use tdb files to check filesystems with a very large number of filesystems had a typo which caused us to resize the wrong data structure. This would cause a array overrun leading to malloc pointer corruptions. Since we normally can very accurately predict how big the the dirinfo array needs to be, this bug only got triggered on very badly corrupted filesystems. Thanks to Andreas Dilger for submitting the test case which discovered this problem, and to Kalpak Shah for writing a random testing script which created the test case. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 10 Jul, 2007 2 commits
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Kalpak Shah authored
Recently, one of our customers found this message in pass2 of e2fsck while doing some regression testing: "Entry '4, 0x695a, 0x81ff, 0x0040, 0x8320, 0xa192, 0x0021' in ??? (136554) has rec_len of 14200, should be 26908." Both the displayed rec_len and the "should be" value are bogus. The reason is that salvage_directory sets a offset beyond blocksize leading to bogus messages. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 09 Jul, 2007 6 commits
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
This is a Lintian-requested cleanup so that e2fsprogs will be correctly built with binaryNMU's. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
This is a Debian-specific debian/rules change, just to clean up the packaging script. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
This particular bit of code has caused problems before, so make it easier to debug problems caused by the probe verification looping forever here. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 08 Jul, 2007 6 commits
-
-
Theodore Ts'o authored
Now that we are moving to x.y.z version number scheme for maintenance releases, we ned to change ext2fs_parse_version_string and blkid_parse_version_string to ignore the second period so we don't have maintenance releases with a substantially bigger verison number than the initial x.y release. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
When revalidating a partition where there is obsolete information in /etc/blkid.tab, we end up freeing a the type tag without clearing dev->bid_type, causing blkid_verify() to loop forever. Addresses-Debian-Bug: #432052 Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 05 Jul, 2007 1 commit
-
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
- 04 Jul, 2007 5 commits
-
-
Theodore Ts'o authored
Fix a potential security problem if e2fsprogs is built as root (as Gentoo does!). In addition fix the script and how it is called from the configure script so that it does the right thing when cross-compiling. Fixes-Gentoo-bug: #146903 Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
When building the e2fsprogs dpkg's, the dh_strip command emits a large number of error messages caused by the permissions not being right. So run dh_fixperms before running dh_strip. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
People are getting surprised by mke2fs creating filesystems with different defaults than earlier versions of mke2fs if mke2fs.conf is not present. Having gotten two complaints about ramdisks getting created by with 4k blocksizes which then blow up when the ramdisk is mounted with a "Magic mismatch, very weird" error message from the kernel, let's fix this by making sure mke2fs has a built-in version of mke2fs.conf file. People can still override the built-in version of mke2fs.conf by editing /etc/mke2fs.conf, but this maintains the previous behavior. Addresses-Sourceforge-Bug: #1745818 Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
profile_set_default() sets the value of the pseudo file "<default>". If the file "<default>" had previously been passed to profile_init(), then def_string parameter will be parsed and used as the profile information for the "<default>" file. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-
Theodore Ts'o authored
Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu>
-