e0ed7404719a9ddd2ba427a80db5365c8bad18c0 |
|
20-Mar-2014 |
JP Abgrall <jpa@google.com> |
Switch back to 1.42.9 now that there is a fix Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
/external/e2fsprogs/e2fsck/super.c
|
65f0aab98b20b5994a726ab90d355248bcddfffd |
|
06-Mar-2014 |
JP Abgrall <jpa@google.com> |
Revert changes that moved from 1.41.14 to 1.42.9 Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
/external/e2fsprogs/e2fsck/super.c
|
18a1444b4f1e6a0948fd38fa0de382d86cfe04de |
|
31-Dec-2013 |
Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> |
Add files that would normally be generated by the e2fsprogs build system Android doesn't run ./configure and friends, so it has to rely on pre-populated versions of the autogenerated files. This is somewhat bogus (e.g. hardcoded little-endian reference in lib/ext2fs/ext2_types.h) and should at some point be fixed, but it's what Android has always done, not a regression from the 1.41.14 branch. Also, don't #include config.h which we don't generate (we pass what it usually contains as -D parameters from Android.mk) anywhere. Add a new Android.mk file for the quota library. Change-Id: I162c6327fee5bd06261d9cdcc34bda10f04a6f21 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/external/e2fsprogs/e2fsck/super.c
|
11d1116a7c0b833af317249d12025413fecbcd70 |
|
23-Dec-2013 |
Andreas Dilger <adilger@dilger.ca> |
e2fsck: verify s_desc_size is power-of-two value Add a LOG2_CHECK mode for check_super_value() so that it is easy to verify values that are supposed to be power-of-two values (s_desc_size and s_inode_size so far). In ext2fs_check_desc() also check for a power-of-two s_desc_size. Print out s_desc_size in debugfs "stats" and dumpe2fs output, if it is non-zero. It turns out that the s_desc_size validation in check_super_block() is not currently used by e2fsck, because the group descriptors are verified earlier by ext2fs_check_desc(), and even without an explicit check of s_desc_size the group descriptors fail to align correctly on disk. It makes sense to keep the check_super_block() regardless, in case the code changes at some point in the future. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
2fe2d408a4e231eb5d2342b7f3dbd155563aa755 |
|
04-Dec-2013 |
Andreas Dilger <adilger@dilger.ca> |
mmp: fix 64-bit handling of s_mmp_block Fix the checking of s_mmp_block in e2fsck_pass1() and ext2fs_mmp_read() to handle the high 32 bits of s_blocks_count. Remove redundant check of s_mmp_block in do_dump_mmp() right before ext2fs_mmp_read() is called. Also fix s_blocks_count_hi in check_backup_super_block(), since it cannot use the ext2fs_blocks_count() helper easily. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
b849f712000fa48e11e7ee8342362876783542ab |
|
03-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: use blk_t instead of blk64_t in check_resize_inode() The resize inode only works on 32-bit block numbers, so use blk_t instead of blk64_t. This avoids some -Wconversion noise, and slims the compiled code slightly, especially on 32-bit platforms. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
27b2297d5726623c2d119c671a0e1778aae6010a |
|
12-Oct-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsck: enable extents on all 64bit filesystems Since it's impossible to address all blocks of a 64bit filesystem without extents, have e2fsck turn on the feature if it finds (64bit && !extents). Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
68477355a9f3b4ca46dfa6c34d05105dcc6682ad |
|
20-May-2013 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: fix gcc -Wall nits Perhaps the most serious fix up is a type-punning warning which could result in miscompilation with overly enthusiastic compilers. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
027b0577d4e5081a4d28dff9289559d38a36d533 |
|
03-Jan-2013 |
Theodore Ts'o <tytso@mit.edu> |
Fix 32-bit overflow problems: dgrp_t * s_blocks_per_group There are a number of places where we multiply a dgrp_t with s_blocks_per_group expecting that we will get a blk64_t. This requires a cast, or using the convenience function ext2fs_group_first_block2(). This audit was suggested by Eric Sandeen. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
/external/e2fsprogs/e2fsck/super.c
|
e9e96584b316f14d117801c61da5192743136b6f |
|
12-Jun-2012 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: update global free blocks/inodes count when truncating orphan inodes By the time we start processing the orphan inode list, we have already calculated the total expected number of free blocks and inodes in ctx->free_{blocks,inodes}. This is used to set the free blocks/inodes count in the superblock in the case where we don't need to do a full e2fsck. We need to update these expected free block counts as we process the orphan inode list so that superblock values are set correctly. Otherwise we could have the following happen: % e2fsck /tmp/test.img e2fsck 1.42.3 (14-May-2012) Truncating orphaned inode 12 (uid=0, gid=0, mode=0100644, size=0) Setting free blocks count to 46 (was 79) /tmp/test.img: clean, 12/16 files, 54/100 blocks % e2fsck /tmp/test.img e2fsck 1.42.3 (14-May-2012) Setting free blocks count to 79 (was 46) /tmp/test.img: clean, 12/16 files, 21/100 blocks Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
b9a64a519af790216b6cd5105ccce55ff7f41a09 |
|
16-Mar-2012 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: print the current and expected block group checksums Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
40b9cc517351dbedff43ab4f4da59af4921b6d25 |
|
06-Feb-2012 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: allow the block bitmap to be uninit when the inode bitmap is in use Removing this check will allow us to eventually eliminate code from the kernel which forcibly initialized the block bitmap when the inode bitmap is first used. This would eliminate a required journal credit and extra disk write. Addresses-Google-Bug: #5944440 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
0c80c44bd08c60f3cd0ad87f12a71a75cac3bcaa |
|
17-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: ext2fs_[set_]file_acl_block needs to check for 64-bit feature flag The ext2fs_file_acl_block() and ext2fs_set_file_acl_block() needs to only check i_file_acl_high if the 64-bit flag is set. This is needed because otherwise we will run into problems on Hurd systems which actually use that field for h_i_mode_high. This involves an ABI change since we need to pass ext2_filsys to these functions. Fortunately these functions were first included in the 1.42-WIP series, so it's OK for us to change them now. (This is why we have 1.42-WIP releases. :-) Addresses-Sourceforge-Bug: #3379227 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
86db36abfb3e9ec77c482e02ed8de073de4148e3 |
|
01-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: avoid unnecessary reboots in some cases when checking the root fs If e2fsck modifies certain superblock fields which the kernel doesn't look at, mark the superblock as dirty without marking the file system as changed. This will avoid e2fsck signalling the init scripts that a reboot is necessary. This is safe, because the kernel doesn't actually look at these superblock fields. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
d1154eb460efe588eaed3d439c1caaca149fa362 |
|
18-Sep-2011 |
Theodore Ts'o <tytso@mit.edu> |
Shorten compile commands run by the build system The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
624e4a6466dba9889f5f80dc168f2bb7c2a3f5d0 |
|
20-Jul-2011 |
Aditya Kali <adityakali@google.com> |
e2fsck: add support for checking the built-in quota files This patch adds support for doing quota accounting during full e2fsck scan if the 'quota' feature was set on the superblock. If user-visible quota inodes are in use, they will be hidden and converted to the reserved quota inodes. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
0bd0e5932046401049502ee99529b984d7cd316e |
|
09-Jul-2011 |
Andreas Dilger <adilger@whamcloud.com> |
misc: use EXT2_I_SIZE() consistently to get size Use the EXT2_I_SIZE() macro consistently to access the inode size. The i_size/i_size_high combination is open coded in several places. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
25567a7b0fa98b390fd1ff0d4702b29c23a75bbb |
|
05-Jul-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck, libext2fs: support for bigalloc file systems with a blocksize of 1024 Filesystems with a blocksize of 1024 have the superblock starting at block #1. However, the first data block in the superblock is 0 to simplify the cluster calculations. So we must compensate for this in a number of places, mostly in the ext2fs library, but also in e2fsck. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
fe75afbf33389f71f8588af388d0c01db0cbf753 |
|
16-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
Fix superblock field s_blocks_count for bigalloc file systems Treat the s_blocks_count field in the superblock as a free block count (instead of the number of free clusters) for bigalloc file systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
a3efe4842054175d01b465fbe0b29b9be8b800a1 |
|
16-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: fix mysterious "FILE SYSTEM WAS MODIFIED" with no changes Commit 2a77a784a3 (firest released in e2fsprogs 1.33) compared superblock summary free blocks and inode counts with the allocation bitmap counts before starting the file system check proper, and if they differed, set the superblock and marked it as dirty. If no other file systme changes were required, this would cause a "*** FILE SYSTEM WAS MODIFIED ***" message without any explanation of what e2fsck had changed. We fix this by only setting the superblock summary free block/inodes counts if we are skipping a full check, and in non-preen mode, e2fsck will now print an explicit message stating how the superblock had been updated. In a full check, any updates to the superblock free blocks/inodes fields will be noted in pass5. This change requires changing a few test results (essentially reversing the changes made in commit 2a77a784a3). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
44fe08f1fa1e9a994ff304aa02022c53c9341519 |
|
11-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: add basic bigalloc support to check (but not yet repair) file systems Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
829d9994880394e48c883510799b1536812d6efb |
|
28-Feb-2011 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: lib/ext2fs/initialize.c
|
412376efff3c0e0c2fea00666c2457e6f2ae1878 |
|
26-Feb-2011 |
Theodore Ts'o <tytso@mit.edu> |
Add basic BIGALLOC support for cluster-based allocation This adds the superblock fields needed so that dumpe2fs works and the code points and renames the superblock fields from describing fragments to clusters. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
6dc64392c052839f373b7bbbb58efa3048bfb355 |
|
13-Jun-2010 |
Valerie Aurora Henson <vaurora@redhat.com> |
e2fsck: Fix up to be 64-bit block number safe Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
97d26ce9e3589e9f5fa17014467a9730a884d158 |
|
07-Jun-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: e2fsck/journal.c e2fsck/pass1.c e2fsck/pass2.c misc/mke2fs.c
|
177839e2454dcc298244481da9c72a19b41836be |
|
13-May-2010 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Skip time-based checks if the time looks insane or broken_system_clock There are broken embedded devices that have system clocks that always reset to January 1, 1970 whenever they boot (even if no power is lost). There are also systems that have super cheap clock crystals that can be very inaccurate. So if the option broken_system_clock is given, disable all time based checks. E2fsck will also try to detect incorrect system clock times, and automatically mark the system clock as insane. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
b49f78fe6e19fe63b6f989d5e1afb04f59069197 |
|
26-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
Convert ext2fs_group_{first,last}_block() to *block2() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
48f23054bb8ad0506c0baa9f06ba182acc2aa88b |
|
26-Oct-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert ext2fs_block_alloc_stats() calls to block_alloc_stats2() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
d7cca6b06f366f998ed43346f9b6fca9e163692f |
|
26-Oct-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert to use block group accessor functions Convert direct accesses to use the following block group accessor functions: ext2fs_block_bitmap_loc(), ext2fs_inode_bitmap_loc(), ext2fs_inode_table_loc(), ext2fs_bg_itable_unused(), ext2fs_block_bitmap_loc_set(), ext2fs_inode_bitmap_loc_set(), ext2fs_inode_table_loc_set(), ext2fs_bg_free_inodes_count(), ext2fs_ext2fs_bg_used_dirs_count(), ext2fs_bg_free_inodes_count_set(), ext2fs_bg_free_blocks_count_set(), ext2fs_bg_used_dirs_count_set() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
cd65a24e756b8f6770a5961fd94c67eb00dd7baa |
|
26-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Convert ext2fs_bg_flag_test() to ext2fs_bg_flags_test() After cleaning up ext2fs_bg_flag_set() and ext2fs_bg_flag_clear(), we're left with ext2fs_bg_flag_test(). Convert it to ext2fs_bg_flags_test(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
e633b58ac75f2f544b7d6572e37d4b63da31e59c |
|
26-Oct-2009 |
Eric Sandeen <sandeen@redhat.com> |
libext2fs: clean up ext2fs_bg_flags_ interfaces The ext2fs_bg_flag* functions were confusing. Currently we have this: void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags); void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group,__u16 bg_flags); (_set (unused) sets exactly bg_flags; _clear clears all and ignores bg_flags) and these, which can twiddle individual bits in bg_flags: void ext2fs_bg_flag_set(ext2_filsys fs, dgrp_t group, __u16 bg_flag); void ext2fs_bg_flag_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flag); A better interface, after the patch below, is just: ext2fs_bg_flags_zap(fs, group) /* zeros bg_flags */ ext2fs_bg_flags_set(fs, group, flags) /* adds flags to bg_flags */ ext2fs_bg_flags_clear(fs, group, flags) /* clears flags in bg_flags */ and remove the original ext2fs_bg_flags_set / ext2fs_bg_flags_clear. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
72a729dbf962e8fba58a06ee0a11a01b15e743fc |
|
24-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure configure.in
|
ba5131f6d48eded504e84c2a8ffc8131df8a512e |
|
17-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Accept superblock times to be fudged by up to 24 hours by default Unfortunately, due to Windows' unfortunate design decision to configure the hardware clock to tick localtime, instead of the more proper and less error-prone UTC time, many users end up in the situation where the system clock is incorrectly set at the time when e2fsck is run. Historically this was usually due to some distributions having buggy init scripts and/or installers that didn't correctly detect this case and take appropriate countermeasures. However, it's still possible, despite the best efforts of init script and installer authors to not be able to detect this misconfiguration, usually due to a buggy or misconfigured virtualization manager or the installer not having access to a network time server during the installation process. So by default, we allow the superblock times to be fudged by up to 24 hours. This can be disabled by setting options.accept_time_fudge to the boolean value of false in e2fsck.conf. The old options.buggy_init_scripts is left for backwards compatibility. Since we are now accepting the 24 hour time fudge by default, there is no longer a need to install an Ubuntu-specific e2fsck.conf file, so we can remove it. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
95bcea9fc149e349865f9eb30988ad1b4e1c1342 |
|
05-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure configure.in misc/mke2fs.c
|
61a9d2b33e5c7afa4f03d6cc0ed4d81b2caf7023 |
|
04-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Use the correct problem code in the case of LAST_WRITE_FUDGED Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
4efbac6fed75c29d3d5f1b676b932754653a2ac5 |
|
08-Sep-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
a63745e81cbb476b90c75ca3ca60b9ba4be95cae |
|
08-Sep-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Use ext2fs_file_acl_block() instead of using .i_file_acl directly This provides support for 48-bit file acl blocks. Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
732c8cd58ff30ffae0d3276c411a08920717a46c |
|
08-Sep-2009 |
Theodore Ts'o <tytso@mit.edu> |
Use accessor functions fields for bg_flags in the block group descriptors Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
24a117abd0340d247befbf7687ffb70547fdf218 |
|
08-Sep-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert to use io_channel_read_blk64() and io_channel_write_blk64() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
c5d2f50dee996e48e96066155f85d7c925fcba0d |
|
23-Aug-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
e2fsck: Convert e2fsck to new bitmap interface Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
fe26a55ac923f4cce17c27ef51de84d2e3b6eebb |
|
08-Aug-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Fix and enhance superblock dates in future problem reports 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>
/external/e2fsprogs/e2fsck/super.c
|
bee24f364ca921e10cefa0d3241b61383aa62866 |
|
05-Aug-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
e2fsck: Allow cancellation during group descriptor checks. Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
26ea4899d1fea0fbc5d28120944d2c2758ac1b11 |
|
17-Jul-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Fix superblock times in the future even if buggy_init_scripts=1 Unfortunately, distributions like Ubuntu seem to have buggy init scripts that run e2fsck and mount the root filesystem before making sure the system time and time zone is correctly set. As a result, a filesystem's last write and last mounted time can be set in future. The buggy_init_scripts configuration option will stop e2fsck from aborting the boot process, but it also inhibits the superblock times from getting fixed. This causes resize2fs to refuse to resize the filesystem, even after running e2fsck on the file system. To deal with this, we need to fix the superblock write times unconditionally. Addresses-Launchpad-bug: #373409 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
982dd30ce87d5fdfb9a6de5732633f31b3840090 |
|
23-Apr-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Reduce unnecessary I/O when checking backup superblock E2fsck needs to check to see if the backup superblock differs from the primary superblock. Previously it was doing so by calling ext2fs_open(), which does a lot of unnecessary work, including reading all of the backup block group descriptors. Avoid this by reading in the backup superblock directly. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
69d0edfd01ef81efd9f880231999975582ea8b60 |
|
23-Apr-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Don't test the resize_inode if the filesystem is clean Move check_resize_inode() out of check_super_block(), since we only need to test the resize_inode for correctness only if the filesystem requires checking. This change avoids a lot of I/O operations which slows down a 1 second boot. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
d9ff474b742f700e049f336f055918060f21a543 |
|
22-Nov-2008 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: ignore differing NEEDS_RECOVERY flag on backup sbs When we resize online, the primary superblock gets copied to all the backups, and of course since we're mounted the NEEDS_RECOVERY flag is set. A subsequent fsck will find the backups have the NEEDS_RECOVERY flag set while the primary does not, and this forces a full fsck pass. I think this flag can be safely ignored in the flag comparisons. Addresses-Red-Hat-Bugzilla: #471925 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
1f790a7cc1fbb0dc2d2f621d2508f52a62f80150 |
|
22-Jan-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Add superblock check to make sure s_first_ino is valid An deliberately corrupted filesystem with an insanely large s_first_ino field could cause e2fsck to crash with a seg fault. Thanks to Eric Sesterhenn for supplying test cases which demonstrated this issue. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
80875db58a6db58e3e2f01caf1adabca068d3ffb |
|
13-Oct-2008 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Offer to clear the test_fs flag if ext4 is available Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
efc6f628e15de95bcd13e4f0ee223cb42115d520 |
|
28-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove trailing whitespace for the entire source tree Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
16b851cdae98244e117fe91d93b267fcad1102b3 |
|
21-Apr-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove LAZY_BG feature This simplifies the code, and using the uninit_bg with the inode table lazily initialized is just as good. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
1ca1059fd0126fd2c065f272a566c18f14bab16d |
|
09-Apr-2008 |
Theodore Ts'o <tytso@mit.edu> |
Add support for the HUGE_FILE feature Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
0d5439c8e0bc63438f45315755e7f0d9dcb09ccf |
|
31-Mar-2008 |
Andreas Dilger <adilger@dilger.ca> |
e2fsck: Add check to enforce a valid block bitmap in last block group Add a check for the UNINIT_BLOCKS flag set in the last group. The kernel patch doesn't handle this gracefully, because it assumes there are a full set of blocks in each group marked UNINIT_BLOCKS. The kernel should be fixed up, but in the meantime this avoids hitting the problem, and is more consistent with lazy_bg not marking the last group UNINIT. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
49a7360ba6b986242d9f0f33e102291d2e0dfb47 |
|
22-Oct-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Make e2fsck uninit block group aware This patch has all the necesary pieces to open and fix filesystems created with the uninit block group feature. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
2d328bb76d2d63bdfdba923b54c28bd686bd8fec |
|
18-Mar-2008 |
Theodore Ts'o <tytso@mit.edu> |
Fix miscellaneous gcc -Wall warnings Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
428f6b32a9029e1f0bc2559233954955a6aae64c |
|
28-Jan-2008 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure lib/ext2fs/ext2_fs.h misc/e2image.c
|
a8cde73acbf6e0f9c0a3601e4f5fac2b01a27bd2 |
|
27-Jan-2008 |
Theodore Ts'o <tytso@mit.edu> |
Ignore "safe" flag differences when e2fsck compares superblocks Recent e2fsprogs (1.40.3 and higher) fsck compares primary superblock to backups, and if things differ, it forces a full check. However, the kernel has a penchant for updating flags the first time a feature is used - attributes, large files, etc. This is a bad idea, and we should break the kernel of this habit, especially for the ext4 feature flags. But for now, let's make e2fsck avoid forcing a full check and backup except when absolutely necessary. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
88b34b1f87c2d7c3dfc9be7ff6e5d916f06d960a |
|
14-Aug-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Relax group descriptor checking for FLEX_BG The FLEX_BG feature allows the inode table, block bitmap, and inode bitmaps to be located anywhere in the filesystem. Update e2fsck and libext2fs's checking code to recognize this. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> -- e2fsck/super.c | 14 ++++++++++++-- lib/ext2fs/check_desc.c | 15 +++++++++++++-- 2 files changed, 25 insertions(+), 4 deletions(-)
/external/e2fsprogs/e2fsck/super.c
|
5d38ef1d049bf56d1c1e88b8b4d287c0f9470e61 |
|
30-Aug-2007 |
Valerie Clement <valerie.clement@bull.net> |
libext2fs: cleanup usage of unsigned int or __u32 and replace it with blk_t Signed-off-by: Valerie Clement <valerie.clement@bull.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
0c37f456d929dac47fcf87374f1c1b9a9a96c9fa |
|
01-Oct-2007 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: backup superblocks if key constants have changed If the primary superblock differs from the backup superblock in certain key respects, force a full check (if e2fsck was invoked in preen mode). If the filesystem check passes cleanly, and the filesystem was opened in read/write mode, then write the primary superblock to all of the backups. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
0cfce7f749ea519522929d91e705cf90518594c4 |
|
06-Oct-2007 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: update the backup superblocks if the feature bitmasks are changed If e2fsck adds or deletes any of the feature bitmasks, clear EXT2_FLAG_MASTER_SB_ONLY so the backup superblocks are updated when e2fsck finishes. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
60702c267d83bc75ca22e8efb5eff0e1a8821800 |
|
23-Sep-2007 |
Theodore Ts'o <tytso@mit.edu> |
Work around lame Ubuntu init scripts / installer bugs The Ubuntu init scripts don't properly set the system time correctly from hardware clock if the hardware clock is configured to tick local time instead of GMT time. Work around this as best as we can by providing an option in /etc/e2fsck.conf which can be set on Ubuntu systems: [options] buggy_init_scripts = 1 Addresses-Debian-Bug: #441093 Addresses-Ubuntu-Bug: #131201 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
d2af1bdd0526603b762c875630e82e0dd9eff059 |
|
04-Jun-2007 |
Theodore Ts'o <tytso@mit.edu> |
Fix e2fsck's get_size logic so it will work with the Linux floppy driver The Linux floppy driver is a bit different from the other block device drivers, in that if the device has been opened with O_EXCL, it disallows another open(), even if the second open() does not have the O_EXCL flag. So this patch moves the call to ext2fs_get_device_size() so that if it returns EBUSY, e2fsck can close the filesystem, retry the device size, and then reopen it. This rather complicated approach is required since we need to know the blocksize of the filesystem before we can call ext2fs_get_device_size(). Addresses Debian Bug: #410569 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
642935c082ca22e1186fc9926fe06e4207d5ab56 |
|
15-Nov-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix misc. gcc -Wall complaints in the misc and e2fsck directories Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
f77704e416fca7dbe4cc91abba674d2ae3c14f6f |
|
12-Nov-2006 |
Theodore Ts'o <tytso@mit.edu> |
Add directory hashed signed/unsigned hint to superblock The e2fsprogs and kernel implementation of directory hash tree has a bug which causes the implementation to be dependent on whether characters are signed or unsigned. Platforms such as the PowerPC, Arm, and S/390 have signed characters by default, which means that hash directories on those systems are incompatible with hash directories on other systems, such as the x86. To fix this we add a new flags field to the superblock, and define two new bits in that field to indicate whether or not the directory should be signed or unsigned. If the bits are not set, e2fsck and fixed kernels will set them to the signed/unsigned value of the currently running platform, and then respect those bits when calculating the directory hash. This allows compatibility with current filesystems, as well as allowing cross-architectural compatibility. Addresses Debian Bug: #389772 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
abf23439d51a3ddbca475b931abebd381ff7ceea |
|
12-Sep-2006 |
Eric Sandeen <esandeen@redhat.com> |
Create new ext2fs library inlines: ext2fs_group_{first,last}_block() Create new ext2fs library inline functions in order to calculate the starting and ending blocks in a block group. Signed-off-by: Eric Sandeen <esandeen@redhat.com>
/external/e2fsprogs/e2fsck/super.c
|
bb1a46a430a99f73ddaf7cf74e380dd5cf36382f |
|
12-Sep-2006 |
Eric Sandeen <esandeen@redhat.com> |
Fix loops over group descriptors to prevent 2**32-1 block number overflows For loops iterating over all group descriptors, consistently define first_block and last_block in a way that they are inclusive of the range, and do not overflow. Previously on the last block group we did a test of <= first + dec_blocks; this would actually wrap back to 0 for a total block count of 2^32-1 Also add handling of last block group which may be smaller. Signed-off-by: Eric Sandeen <esandeen@redhat.com>
/external/e2fsprogs/e2fsck/super.c
|
a3e025c7493b58ec88b775f26a41e4205a6a2c9f |
|
29-Aug-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix silly spelling error in e2fsck Addresses SourceForge bug: #1531372 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
b1c52b26a44efeb366402985763c242a4b21aeb1 |
|
10-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Enhance e2fsck so it can fix external journal hint in the superblock Check to see if the superblock hint for the external journal needs to be updated, and if so, offer to update it. (Addresses Debian Bug: #355644) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
8dceb92407f751d1a8aecd4bfb36d1fe2dc3cf9a |
|
25-Sep-2005 |
Theodore Ts'o <tytso@mit.edu> |
E2fsck: fix future times in the superblock's last mount or last write fields Detect if the superblock's last mount field or last write field is in the future, and offer to fix if so. (Addresses Debian Bug #327580) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/super.c
|
1f3ad14a5ad5df3ac4012d41ef5d76411cd8fff3 |
|
14-Apr-2005 |
Theodore Ts'o <tytso@mit.edu> |
Use a centrally stored current time for "now" which can be overridden using the E2FSCK_TIME environment variable, for better reproducibility for regression tests.
/external/e2fsprogs/e2fsck/super.c
|
89db86d33c634374a3f6e15f943ab83cdc5bd93a |
|
21-Mar-2005 |
Theodore Ts'o <tytso@mit.edu> |
Make e2fsck check the superblock's inode_size to make sure it is sane before we start depending on it!
/external/e2fsprogs/e2fsck/super.c
|
ea774315631accb05e2407765c6b448d648d14d6 |
|
28-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix two bugs found by the regression test suites. The bug was created when we changed ext2fs_create_resize_inode to always create the resize inode, even when s_reserved_gdt_blocks is zero. Mke2fs and e2fsck was calling ext2fs_create_resize_inode() unconditionally, and depending on s_reserved_gdt_blocks to be zero, instead of explicitly checking the resize_inode feature.
/external/e2fsprogs/e2fsck/super.c
|
d4dc0a9e29f9e50a46840bc130c6a816c4c7faa5 |
|
28-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Create the resize inode is created even if the s_reserved_gdt_blocks is zero; e2fsck will now complain and recreate the resize inode if i_links_count is zero or if it is not a regular file.
/external/e2fsprogs/e2fsck/super.c
|
5780ead245fec02b83a18e0e12835732acdb64b1 |
|
28-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Cset exclude: tytso@think.thunk.org|ChangeSet|20050123214956|52665
/external/e2fsprogs/e2fsck/super.c
|
550a4afa24be35976edffe578555de30e06c456a |
|
25-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
E2fsck will now check the individual block group inode and block free counts, as well as the filesystem-wide inode and block free counts. If any of the free counts is too large, force a full filesystem check. (Addresses Debian Bug #291571)
/external/e2fsprogs/e2fsck/super.c
|
2d096010069cc7caae16ce21357668c53fe8e1c5 |
|
23-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix e2fsck so that it does not complain if the resize_inode feature is enabled, but s_reserved_gdt_blocks is zero and there is no double indirect block in the resize inode. If there are no blocks reserved for on-line expansion, there is no need for the DIND block to be allocated in the resize inode.
/external/e2fsprogs/e2fsck/super.c
|
22ba4c1dedd61cef3f4e821a0bcfbceccc571a0f |
|
06-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Make tune2fs and e2fsck consistent about allowing at most 50% of the blocks in a filesystem to be reserved for allocation by the root user.
/external/e2fsprogs/e2fsck/super.c
|
dc8ce3463791366ac844d3f0436709511fa09c49 |
|
06-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix resize inode handling on big endian systems, by adding new routines that read/write indirect blocks, byte swapping them if necessary.
/external/e2fsprogs/e2fsck/super.c
|
c3ffaf833b7ddb3c1d422c71f59e1623029ede0c |
|
24-Dec-2004 |
Theodore Ts'o <tytso@mit.edu> |
Add support to detect corrupted resize_inode's to e2fsck.
/external/e2fsprogs/e2fsck/super.c
|
e75cfc5da83c749be43f87c0ccf5ec1f1dd26e2c |
|
17-Dec-2004 |
Theodore Ts'o <tytso@mit.edu> |
Fix e2fsck so that it will clean up filesystesm that have the resize_inode capability disabled, but which still have the s_reserved_gdt_blocks field set in the superblock, or which still have blocks in the inode #7 (the resize inode).
/external/e2fsprogs/e2fsck/super.c
|
544349270e4c74a6feb971123884a8cf5052a7ee |
|
07-Dec-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks
/external/e2fsprogs/e2fsck/super.c
|
c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e |
|
01-Aug-2003 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() all now take a 'void *' instead of a 'void **' in order to avoid pointer aliasing problems with GCC 3.x.
/external/e2fsprogs/e2fsck/super.c
|
2a77a784a327835dbf0c8aa92978f201e44fbc26 |
|
06-Apr-2003 |
Theodore Ts'o <tytso@mit.edu> |
E2fsck now updates the global free block and inode counters from the block group specific counters quietly. This is needed for an experimental patch which eliminates locking the entire filesystem when allocating blocks or inodes; if the filesystem is not unmounted cleanly, the global counts may not be accurate.
/external/e2fsprogs/e2fsck/super.c
|
299d742427776629ef07b4563f41a4e00fc23aa0 |
|
08-Nov-2002 |
Theodore Ts'o <tytso@mit.edu> |
Change e2fsck to force out changes to the backup copies of the superblock and block group descriptors when important changes are made to those data structures.
/external/e2fsprogs/e2fsck/super.c
|
0684a4f33b5c268fe12f57fcbc77a880c79ab282 |
|
17-Aug-2002 |
Theodore Ts'o <tytso@mit.edu> |
Overhaul extended attribute handling. Should now be correct with respect to the latest V2 bestbits ACL code.
/external/e2fsprogs/e2fsck/super.c
|
eb16f861e908101a7f395971ca832a98f4935406 |
|
14-Aug-2002 |
Stephen Tweedie <sct@redhat.com> |
Clear dtime field on truncated orphan inodes.
/external/e2fsprogs/e2fsck/super.c
|
b21bf267783274683a432eea6e5c589eab94123e |
|
10-Jun-2002 |
Andreas Dilger <adilger@clusterfs.com> |
Do sanity checking of the number of blocks and inodes in a group for 8192-byte and 16384-byte blocksize filesystems. Change the default bytes-per-inode ratio of a new filesystem to be at most one inode per block for large blocksizes.
/external/e2fsprogs/e2fsck/super.c
|
31e29a12d1e22745c74afe47bf172a3c73280dd9 |
|
17-May-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix up Andreas's 8k blocksize changes to fix a number of bugs, and to make the page size determined at run-time instead of compile time.
/external/e2fsprogs/e2fsck/super.c
|
932a489cdf6bc83d69e59d3f8e0a57b733799ce1 |
|
16-May-2002 |
Andreas Dilger <adilger@clusterfs.com> |
Add support for creating and checking 8192-byte blocksize filesystems. We complain if you try to create such a filesystem on a system with 4096 byte PAGE_SIZE. Add checks for valid inode size for undocumented -I option.
/external/e2fsprogs/e2fsck/super.c
|
d1a2182a1878b1dc6c0996ed1a6c5b108f6626f9 |
|
22-Feb-2002 |
Theodore Ts'o <tytso@mit.edu> |
Cleaned up journal handling code in e2fsck. Fixed up two minor memory leaks.
/external/e2fsprogs/e2fsck/super.c
|
24bfb443fccf2060c55d0f919ef650409f96674a |
|
26-Nov-2001 |
Theodore Ts'o <tytso@mit.edu> |
super.c (check_super_block): Make sure that if the inode table or allocation bitmap is zero, that it is marked as invalid, so that in pass #1, a new bitmap/inode table gets properly allocated. (Addresses Debian Bug #116975)
/external/e2fsprogs/e2fsck/super.c
|
773fd8a1d4202af708a37bdc7754134e6fdcfe22 |
|
07-Oct-2001 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck.h, journal.c (e2fsck_move_ext3_journal): Add new function which will automatically relocate the ext3 journal from a visible file to an invisible journal file if the filesystem has been opened read/write. super.c (check_super_block): Add call to e2fsck_move_ext3_journal problem.c, problem.h (PR_0_MOVE_JOURNAL, PR_0_ERR_MOVE_JOURNAL): Add new problem codes.
/external/e2fsprogs/e2fsck/super.c
|
eb4ab51044706e52fc78907130f2cb9458a7023b |
|
13-Aug-2001 |
Theodore Ts'o <tytso@mit.edu> |
super.c (release_orphan_inodes): If the filesystem contains errors, don't run the orphan * list, since the orphan list can't be trusted.
/external/e2fsprogs/e2fsck/super.c
|
42475e281d22dbefd7f0b399f6056f642fa0ab92 |
|
23-Jun-2001 |
Theodore Ts'o <tytso@mit.edu> |
super.c (release_inode_blocks): Don't try to release the blocks if the orphaned inode is a device file, symlink, or some other kind of special file that doesn't have a block list.
/external/e2fsprogs/e2fsck/super.c
|
424cd2beb7c40a3e4cf96b5bf28b24e48554a754 |
|
14-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, journal.c, problem.c, problem.h, super.c: super.c (check_super_block): Be more strict on checking s_r_blocks_count superblock field. problem.c, problem.h (PR_0_JOURNAL_UNSUPP_ROCOMPAT, PR_0_JOURNAL_UNSUPP_INCOMPAT, PR_0_JOURNAL_RESET_COMPAT): New problem codes. journal.c (e2fsck_journal_load): Use a problem code to report unsupported feature flags. There is code to clear unsupported flags, but since this is dangerous, it's not allowed in the problem code table. journal.c (e2fsck_journal_reset_super): initialize the journal sequence number to a random value to avoid recovering bad transactions from a corrupt journal.
/external/e2fsprogs/e2fsck/super.c
|
f0b8c87d2a196ecc9a19998d512f3d9a46b758ea |
|
09-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c (release_orphan_inodes): Add gettext quoting around "Truncating" and "Clearing" for i18n.
/external/e2fsprogs/e2fsck/super.c
|
ef059870afc5b3ace4dfbf65d6f1ffe6b610484d |
|
17-Apr-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c (check_super_block): Fix bad calculation of inodes_per_block, and tighten min/max checks to be a bit more paranoid. Thanks to Andreas Dilger for pointing out this bug.
/external/e2fsprogs/e2fsck/super.c
|
721edd0eddcfb4ebdd4fba22338a674477795acd |
|
12-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c: Minor whitespace cleanups, from Andreas Dilger. mtrace.h: mtrace.h: Minor whitespace cleanups, from Andreas Dilger. ChangeLog, message.c: message.c (special_inode_name): Add more special inode names (From Andreas Dilger)
/external/e2fsprogs/e2fsck/super.c
|
86c627ec1136446409a0170d439e60c148e6eb48 |
|
11-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: dirinfo.c, e2fsck.h, emptydir.c, iscan.c, jfs_user.h, journal.c, message.c, pass1.c, pass1b.c, pass2.c, pass3.c, pass4.c, pass5.c, problem.h, scantest.c, super.c, swapfs.c: Change ino_t to ext2_ino_t.
/external/e2fsprogs/e2fsck/super.c
|
53ef44c40a3e425d2c700d8fd77a6b655aa121fe |
|
06-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c, super.c, unix.c, util.c: Fix random gcc -Wall complaints. jfs_user.h: Use more sophisticated inline handling to allow building with --enable-gcc-wall
/external/e2fsprogs/e2fsck/super.c
|
5dd8f963d04fa4099a003cb3b13ffae05ab29210 |
|
01-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, journal.c, pass1.c, super.c, unix.c: journal.c, pass1.c, super.c, unix.c: Replace use of struct ext2fs_sb with struct ext2_super_block. ChangeLog, debugfs.c: debugfs.c Replace use of struct ext2fs_sb with struct ext2_super_block.
/external/e2fsprogs/e2fsck/super.c
|
9b5657591b1db9b82fe433f3f90e496f3df6a851 |
|
13-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c (release_orphan_inodes): Fix spelling typo in error message. ChangeLog, unix.c: unix.c (main): Clarify coments (no code changes) ChangeLog, journal.c: journal.c (e2fsck_check_ext3_journal): Check to make sure the journal fields are consistent if any of the superblock fields are set. (Backs out erroneous change made by sct, pointed out by Andreas.)
/external/e2fsprogs/e2fsck/super.c
|
a917d1ccf49605b3009f4e7225f00b81fc16100b |
|
13-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, closefs.c, ext2fs.h, jump.funcs, super.c: Rename _ext2fs_update_fs_dynamic_rev to _ext2fs_update_dynamic_rev
/external/e2fsprogs/e2fsck/super.c
|
7b59f1efb1c4ac53c64a2cc412acf5b056cc628b |
|
13-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c (check_super_block): If we have any of the compatibility flags set, we need to have a revision 1 filesystem. Most kernels will not check the flags on a rev 0 filesystem and we may have corruption issues because of the incompatible changes to the filesystem. Patch from Andreas Dilger.
/external/e2fsprogs/e2fsck/super.c
|
8394902e04e64ed10ca81e869892c00143ee4931 |
|
25-Oct-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, journal.c, problem.c, problem.h, super.c: super.c (release_inode_block, release_inode_blocks, release_orphan_inodes): Add code to deal with truncating inodes which are still in use (but which are on the orphan list because they need truncation). problem.c, problem.h: Rename PR_0_CLEAR_ORPHAN_INODE to PR_0_ORPHAN_CLEAR_INODE, and remove PR_0_ORPHAN_INODE_INUSE. journal.c (e2fsck_run_ext3_journal): Add i18n support, and print a message when the journal is being recovered.
/external/e2fsprogs/e2fsck/super.c
|
99a2cc969fb47e8c87965aa9fb93cabf6fe4ac1e |
|
22-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, jfs_compat.h, journal.c, pass3.c: jfs_compat.h (J_ASSERT): journal.c (e2fsck_run_ext3_journal): pass3.c (adjust_inode_count): Use fatal_error() instead of exit(). ChangeLog, super.c: super.c (release_orphan_inodes): Fix typo; should do bounds checking on next_ino instead of ino.
/external/e2fsprogs/e2fsck/super.c
|
ecf1b7767e1772f4c6dba8f02026057ed05397bd |
|
21-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, journal.c, message.c, problem.c, problem.h, super.c: journal.c (e2fsck_journal_load): Fix **nasty** bug which caused e2fsck_check_ext3_journal to smash the journal because journal->j_transaction_sequence wasn't getting initialized. journal.c: (recover_ext3_journal, e2fsck_run_ext3_journal): Move call to e2fsck_clear_recover from recover_ext3_journal to after the filesystem has been closed and reopened. Otherwise, the superblock in the filesystem handle will probably be stale, and will overwrite the newer version of the superblock written by the log recovery. message.c (expand_inode_expression): Add support for %Iu and %Ig problem.h (PR_0_CLEAR_ORPHAN_INODE): Add new problem code. super.c (release_orphan_inodes, release_inode_block, release_inode_blocks): Update the block group descriptor counts when freeing the orphan inode. Use PR_0_CLEAR_ORPHAN_INODE to report when we clear an orphan. journal.c (e2fsck_run_ext3_journal): Fix a bug where we attempted to reopen the filesystem using the device name instead of the filesystem name.
/external/e2fsprogs/e2fsck/super.c
|
25c63ba09fbdb5ab0f7385af156bd18165b3e76d |
|
18-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
super.c: Remember to clear the orphaned inode list before starting to process it.
/external/e2fsprogs/e2fsck/super.c
|
80bfaa3e40ae6ab00cc3d4d1f4c0eeefce0b1a96 |
|
18-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Makefile.in: Update the make dependencies problem.c, problem.h: Add the problem codes: PR_0_ORPHAN_ILLEGAL_BLOCK_NUM, PR_0_ORPHAN_ALREADY_CLEARED_BLOCK, PR_0_ORPHAN_ILLEGAL_HEAD_INODE, PR_0_ORPHAN_ILLEGAL_INODE, PR_0_ORPHAN_INODE_INUSE super.c (release_inode_blocks, release_orphan_inodes, check_super_block): Add support for clearing orphaned inodes from the unmounted filesystem. journal.c (e2fsck_recover_ext3_journal): Remove the last orphan check; this is now handled in check_super_block --- non-journaled filesystems can use the orphan list in the future. Also, move the the re-opening of the filesystem to e2fsck_run_ext3_journal(). debugfs.c: debugfs.c (finish_range): Make sure the pager FILE pointer to use. configure, configure.in, ChangeLog: configure.in (JFS_DEBUG): Add support for --enable-jfs-debug
/external/e2fsprogs/e2fsck/super.c
|
4ea0a1109d761e9caaa53f6fa9e036321826c5fa |
|
08-May-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, problem.c, problem.h, super.c: problem.c, problem.h (PR_0_HURD_CLEAR_FILETYPE): Add new problem code. super.c (check_super_block): If the OS type in the superblock is the Hurd, check to see if the filetype feature is set, and offer to clear it if so. This needs to be done since the Hurd doesn't properly support the filetype feature. (And since the hurd allows the transmogrification of files to special files and vice versa --- for no good reason that I can understand --- it can't support the filetype feature for the forseeable future, either.) ChangeLog, mke2fs.c: mke2fs.c (main): We forcibly turn off the filetype feature if the OS is the hurd, since the hurd doesn't support it. (And since the hurd allows the transmogrification of files to special files and vice versa --- for no good reason that I can understand --- it can't support the filetype feature for the forseeable future, either.) mke2fs.c (proceed_question): Fix reversed sense of proceed_question that was busted due to the internationalization patch. Fixed bug where if proceed_question was called twice, the input buffer wasn't cleared of the previous question's newline. ChangeLog, expect.1, expect.2, image.gz, name: f_hurd: Add test for Hurd-specific features (right now, just checks to make sure the filetype feature is cleared) ChangeLog, ls.c: ls.c (list_super): Change the string displayed for the Hurd to be GNU/Hurd, instead of just "GNU".
/external/e2fsprogs/e2fsck/super.c
|
78cf05478d9b97e458212bffad5c782a7e543326 |
|
20-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, super.c: super.c (check_super_block): Check to see whether the inodes_per_group value in the superblock is insanely too high.
/external/e2fsprogs/e2fsck/super.c
|
d4b0ce03168d313e89110ab9fbaa6caf616d1786 |
|
18-Jun-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, problem.c, problem.h, super.c: problem.c, problem.h (PR_0_INODE_COUNT_WRONG): Add new problem code. super.c (check_super_block): Add check to make sure the total number of inodes is sane, since this can be calculated from the number of groups times the number of inodes per group. Offer to correct it if it is incorrect.
/external/e2fsprogs/e2fsck/super.c
|
7f813ba33711902f5e557da49f98622532e7556d |
|
03-Sep-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, pass3.c, pass4.c, problem.c, problem.h, super.c: problem.c: Add PR_3_NO_DIRINFO error code. super.c (check_super_value): Rename min and max to min_val and max_val to avoid possible cpp macro conflicts. pass4.c (e2fsck_pass4): Rename max to maxgroup, to avoid possible cpp macro conflicts. pass3.c (e2fsck_pass3): Rename max to maxdirs, to avoid possible cpp macro conflicts. (check_directory): Fix logic to avoid possible core dump in the case of ext2fs_get_dir_info returning NULL. (By the time we get here, it should never happen, but...). Also simply/streamline the control flow of the function.
/external/e2fsprogs/e2fsck/super.c
|
4c77fe50d97a773e32a4756c79dade3adbb6a601 |
|
30-Apr-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, pass1.c, super.c: pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the appropriate return type for comparison functions for qsort. e2fsck.h: Add #ifdef protection for unistd.h super.c: Remove header files already included by e2fsck.h ChangeLog, dblist.c, ext2fs.h: ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the return type for comparison functions for qsort. dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function declaration. ChangeLog, extent.c: extent.c (ext2fs_create_extent_table): Use ext2fs_free_mem instead of free(). (extent_cmp): Use EXT2_QSORT_TYPE to define the appropriate return type for comparison functions for qsort.
/external/e2fsprogs/e2fsck/super.c
|
17dba281a042d3f8122ef7ce6933035a8eae074a |
|
30-Mar-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, pass4.c, super.c: super.c, e2fsck.h: Always declare e2fsck_get_device_size() as an extern in e2fsck.h to prevent -Wall warnings. pass4.c (e2fsck_pass4): Remove unused variable 'j'. super.c (check_super_block): Fix broken superblock sanity check when calculating blocks_per_group if s_log_frag_size != s_log_block_size. Since we don't support fragments, this isn't a bug deal, but it's good to get it fixed. ChangeLog, Makefile.elf-lib: Makefile.elf-lib (installdirs): Change use of DLL_INSTALL_DIR to ELF_INSTALL_DIR. (Doesn't make a difference currently, but it's correct this way.) ChangeLog, fgetversion.c, getversion.c: getversion.c (getversion): Return 0 if there's no error. fgetversion.c (fgetversion): Pass the address of the temporary variable instead of the unitialized variable to the EXT2_IOC_GETVERSION ioctl.
/external/e2fsprogs/e2fsck/super.c
|
4313932cd77c9323fbfe4cacf4d1dc84c95a39de |
|
16-Feb-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.8.in, e2fsck.h, pass3.c, pass4.c, super.c: e2fsck.h: Add new field, priv_data to the e2fsck context structure. It should be used by callers of the e2fsck functions only, and not by anything in e2fsck itself. super.c: Instead of call ext2fs_get_device_size(), define and call e2fsck_get_device_size(). (This function may be stubbed out in special versions of e2fsck.) pass3.c, pass4.c: Remove extra calls to the progress function that weren't needed. mke2fs.8.in: Update man page to note that the format of the bad block file is the same as the one generated by badblocks.
/external/e2fsprogs/e2fsck/super.c
|
54be2ccc2251784fd771590a5e72827afd82df40 |
|
01-Feb-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, dirinfo.c, e2fsck.c, e2fsck.h, super.c: dirinfo.c, e2fsck.c: Don't include com_err.h; it isn't needed. e2fsck.h: Include <time.h> since it is needed super.c: If EXT2_SKIP_UUID is defined, then skip the UUID processing.
/external/e2fsprogs/e2fsck/super.c
|
54dc7ca2869897ae8cb81a9ab9880ebff11680bc |
|
19-Jan-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: e2fsck.h: If EXT2_FLAT_INCLUDES is defined, then assume all of the ext2-specific header files are in a flat directory. dirinfo.c, ehandler.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c, swapfs.c, unix.c: Explicitly cast all assignments from void * to be compatible with C++. unix.c (sync_disk): Remove sync_disk and calls to that function, since ext2fs_close() now takes care of this. pass1.c, pass1b.c, pass2.c, pass3.c, swapfs, badblocks.c, ehandler.c, unix.c: Change use of private to be priv_data, to avoid C++ reserved name clash.
/external/e2fsprogs/e2fsck/super.c
|
f8188fff23dc2d9c9f858fb21264e46b17672825 |
|
14-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the progress indicator function. pass1.c (scan_callback): Add call to the progress feedback function (if it exists). super.c (check_super_block): Skip the device size check if the get_device_size returns EXT2_EXT_UNIMPLEMENTED. iscan.c (main): Don't use fatal_error() anymore. pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of calling fatal_error(0). problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT, PR_3_NO_ROOT_INODE_ABORT): New problem codes. problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code. problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code. problemP.h: New file which separates out the private fix_problem data structures. util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c, swapfs.c util.c: allocate_memory() now takes a e2fsck context as its first argument, and rename it to be e2fsck_allocate_memory(). problemP.h: New file which contains the private problem abstraction definitions. Makefile.pq: Remove include of MAKEFILE.STD, which doesn't exist at this point.
/external/e2fsprogs/e2fsck/super.c
|
08b213017f8371ce4b56ad4d368eb0f92211d04e |
|
03-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Change ext2fs_read_inode, ext2fs_write_inode to take the e2fsck context as their first argument. Change dir_info.c routines to take an e2fsck_context, renamed them to start with e2fsck_ to avoid namespace issues, and changed them to store the directory information inside the e2fsck context. Added e2fsck_run() which calls all of the e2fsck passes in the correct order, and which handles the return of abort codes. Added abort processing, both via setjmp/longjmp and via flags in the e2fsck context. Use a flag in the e2fsck context instead of the restart_e2fsck global variable. Change uses of free and malloc to ext2fs_free_mem and ext2fs_get_mem.
/external/e2fsprogs/e2fsck/super.c
|
b2da22d14b6ac5aa5080c39cab46b4aa4178f90f |
|
20-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, super.c: super.c: Remove excess #includes which are not necessary. e2fsck.h: Add #ifdef's for HAVE_SYS_TYPES_H and HAVE_SYS_TIME_H
/external/e2fsprogs/e2fsck/super.c
|
1b6bf1759af884957234b7dce768b785f792abd0 |
|
03-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: pass*.c, super.c: Massive changes to avoid using printf and com_err routines. All diagnostic messages are now routed through the fix_problem interface. pass2.c (check_dir_block): Check for duplicate '.' and '..' entries. problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and PR_2_DUP_DOT_DOT. problem.c: Added new problem codes for some of the superblock corruption checks, and for the pass header messages. ("Pass 1: xxxxx") util.c (print_resource_track): Now takes a description argument. super.c, unix.c, e2fsck.c: New files to separate out the operating-specific operations out from e2fsck.c. e2fsck.c now contains the global e2fsck context management routines, and super.c contains the "pass 0" initial validation of the superblock and global block group descriptors. pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate (nearly) all global variables and moved them to the e2fsck context structure. problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT, PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS, PR_0_BLOCKS_PER_GROUP, PR_0_FIRST_DATA_BLOCK expect.1, expect.2: Updated tests to align with e2fsck problem.c changes.
/external/e2fsprogs/e2fsck/super.c
|