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/rehash.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/rehash.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/rehash.c
|
5797cb017cb8accbab8c69aaf83269c5d2d72e4e |
|
11-Dec-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsck: only release clusters when shortening a directory during a rehash When the rehash process is running on a bigalloc filesystem, it compresses all the directory entries and hash structures into the beginning of the directory file and then uses block_iterate3() to free the blocks off the end of the file. It seems to call ext2fs_block_alloc_stats2() for every block in a cluster, which is unfortunate because this function allocates and frees entire clusters (and updates the summary counts accordingly). In this case e2fsck writes out incorrect summary counts. Reviewed-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
974d57d3b1f896d2064ba854d7c037ab6478ecf8 |
|
03-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: use errcode_t to suppress some -Wconversion warnings We need to store some error codes using an int to keep recovery.c as close as possible to the recovery.c source file in the kernel. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
4dbfd79d1458ce1259b951377e341aeb6197f8c1 |
|
07-Oct-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsprogs: fix blk_t <- blk64_t assignment mismatches Fix all the places where we should be using a blk64_t instead of a blk_t. These fixes are more severe because 64bit values could be truncated silently. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
e3507739e4185bdb2394928eb6479e48f4e690a8 |
|
01-Jan-2013 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nits This fixes the last set of gcc -Wall complaints. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
32d4eb2b04f62e5380d29089040af2f8ba7b066e |
|
29-Jul-2012 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: fix code which uniquifies names in directory entries When checking to see whether or not a new name is unique, the code was using the wrong length parameter, which could cause the anti-collision loop for a long time trying to find what it thinks is a unique name. Addresses-Sourceforge-Bug: #3540545 Reported-by: Vitaly Oratovsky <vmo@users.sourceforge.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
cf5301d7f2c3bbed3d26600335102414cbf0c4ba |
|
11-Jun-2011 |
Andreas Dilger <adilger@whamcloud.com> |
misc: clean up compiler warnings Fix several types of compiler warnings (unused variables/labels), uninitialized variables, etc that are hit with gcc -Wall. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
c5b23f6c0e17503630455fb16d1b2035f844acc9 |
|
15-Mar-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next
|
53fbfb2bc3490d0ff317666322dd077c08116e0c |
|
23-Feb-2010 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Fix bug which can cause e2fsck -fD to corrupt non-indexed directories E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where e2fsck -fD can corrupt non-indexed directories when are exists one or more file names which alphabetically sort before ".". This can happen with ext2 filesystems or for small directories (take less than a block) which contain filenames that begin with a space or some other punctuation mark. Fix this by making sure we never reorder the '.' or '..' entry in the directory, since they must be first. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
2d07b3ad98bfe1db5fb1071f53a5338ab6c35522 |
|
31-Jan-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure lib/ext2fs/alloc_tables.c misc/mke2fs.c
|
f4e14505ed19a1527aa69a0474fe3b15ddf8b188 |
|
29-Nov-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Don't rehash directories which can fit in a single directory block Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
b71e01835ff844d5be09ecbf7e51acad4d75447b |
|
17-Nov-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Fix duplicate directory entries for non-indexed directories Duplicate directory entries were not necessarily getting found and fixed for non-indexed directories, since we were sorting these directories by inode number, and the duplicate entry code assumed the entries were getting sorted by name or directory name hash. Addresses-Sourceforge-Bug: #2862551 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.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/rehash.c
|
8a480350952f6f0fdbce54326b6d847e66368897 |
|
22-Jun-2009 |
Theodore Ts'o <tytso@mit.edu> |
Fix encoding for rec_len in directories for >= 64k blocksize file systems Previously e2fsprogs interpreted 0 for a rec_len of 65536 (which could occur if the directory block is completely empty in 64k blocksize filesystems), while the kernel interpreted 65535 to mean 65536. The kernel will accept both to mean 65536, and encodes 65535 to be 65536. This commit changes e2fsprogs to match. We add the encoding agreed upon for 128k and 256k filesystems, but we don't enable support for these larger block sizes, since they haven't been fully tested. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
9facd076ae8af6e908e228392cea866ce0faf1bc |
|
28-May-2009 |
Ken Chen <kenchen@google.com> |
Add empty function for init_resource_track() and print_resource_track() in the case of ! defined RESOURCE_TRACK, so that we can clean up #ifdef throughout e2fsck source. Signed-off-by: Ken Chen <kenchen@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
45e338f5332a54295893dba2e32cc093d1316f60 |
|
23-Feb-2009 |
Jim Meyering <jim@meyering.net> |
remove useless if-before-free tests In case you're wondering about whether this change is safe from a portability standpoint, fear not. This has been beaten to death in other forums. Here are a few threads: http://thread.gmane.org/gmane.comp.version-control.git/74187 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/12712 http://thread.gmane.org/gmane.emacs.devel/98144 http://thread.gmane.org/gmane.comp.lib.glibc.alpha/13092 There has been debate about whether it's a good idea from a performance standpoint, too, but imho you'll have a hard time finding an instance where this sort of change induces a measurable performance penalty. If you do, please let me know. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
7dca4c88f166561031011ed27287818eaa343486 |
|
24-Dec-2008 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: When repacking directories, leave slack space for more efficiency If the directory is packed with no slack space, as soon as any new directory entries are added, leaf nodes end up getting split and directory ends up getting very inefficient. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
5dd77dbe5a0ac6d78c1c6441fae4087be56d9088 |
|
26-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
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>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
fef2b38d8e5b475655771f8208265a8fa9246601 |
|
01-Jan-2008 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure debian/rules e2fsck/swapfs.c lib/ext2fs/ext2_fs.h
|
d66c38329e9897563bd29908043e5187f868b46d |
|
01-Jan-2008 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: When optimizing non-htree directories, sort by inode number Previously "e2fsck -fD" on a non-htree directory would sort the directory alphabetically by name. That's stupid. Better to sort the directory by inode number, since that will optimize performance much more significantly than sorting by name! Addresses-Sourceforge-Feature-Request: #532439 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.c
|
6d96b00d57d236e2746f8245df6c8ea64abc64c1 |
|
04-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add I/O statistics to e2fsck 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>
/external/e2fsprogs/e2fsck/rehash.c
|
28db82a84a33fab19f22da12bb2a8a3c558ae97b |
|
05-Apr-2007 |
Theodore Ts'o <tytso@mit.edu> |
Rework e2fsck's dirinfo abstraction to be more friendly for databases Change the iterator abstraction and replace e2fsck_get_dir_info() with e2fsck_dir_info_{set,get}_{parent,dotdot} so that we can support an on-disk dirinfo implementation. This allows e2fsck to check very large filesystems on systems with smaller amounts of memory and/or address space. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/rehash.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/rehash.c
|
544349270e4c74a6feb971123884a8cf5052a7ee |
|
07-Dec-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks
/external/e2fsprogs/e2fsck/rehash.c
|
520ead378ec5ddef828a8d206434cc3a444b2e9e |
|
19-Apr-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall warnings.
/external/e2fsprogs/e2fsck/rehash.c
|
12dd69f5ff95517037736f39104262d720d1edee |
|
18-Apr-2003 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck/rehash.c (name_cmp): Sort the deleted inodes to the end of the list, for portability to systems that whose qsort does not perform a stable sort.
/external/e2fsprogs/e2fsck/rehash.c
|
1d2eef4227f165789a8a39d904542a1865a88283 |
|
15-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
rehash.c (e2fsck_rehash_dir): If user specified the -n option, skip trying to write out directory. (e2fsck_rehash_directories): Fix the percentage calculation in the progress bar.
/external/e2fsprogs/e2fsck/rehash.c
|
52734dc532c970b07de7a33d761a44f322bc51f3 |
|
15-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Don't display progress bar when rebuilding directories unless explicitly requested by the user.
/external/e2fsprogs/e2fsck/rehash.c
|
b0700a1b6083f2f0c19c349f07ca80e70ec456be |
|
14-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Change e2fsck to detect and offer to delete or rename duplicate filenames in directories when rebuilding directories using "e2fsck -fD /dev/XXX"
/external/e2fsprogs/e2fsck/rehash.c
|
fe5b72d15e2805812e0f262d9eeb5428a603bf15 |
|
30-Sep-2002 |
Theodore Ts'o <tytso@mit.edu> |
rehash.c (e2fsck_rehash_dir): Apply patch from Christopher Li which avoids creating an empty directory entry at the end of the directory block. This screws up earlier versions of the indexed directory patch.
/external/e2fsprogs/e2fsck/rehash.c
|
e70ae99e077f5085c15a4526028e2aac0e91d7c1 |
|
28-Sep-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add a more sophisticated algorithm to e2fsck to salvage corrupted directories. Speed up e2fsck slightly by only updating the master superblock; there is no point to update the backup superblocks. Fix a small bug in the rehashing code which could leave the indexed flag set even after the directory was compressed instead of indexed. (Not fatal, since the kernel will deal with this, but technically it filesystem isn't consistent, and the filesystem will be marked as being in error when the kernel comes across the directory. It should also never happen in real life, since directories that small will never be indexed, but better safe than sorry.) Also change the threshold of when directories are indexed, so that directories of size 2 blocks will be indexed. Otherwise they will never be indexed by the kernel when they grow.
/external/e2fsprogs/e2fsck/rehash.c
|
cf3909edfe0cd9680da51a4a547f6e7318cb944c |
|
06-Sep-2002 |
Theodore Ts'o <tytso@mit.edu> |
rehash.c (copy_dir_entries): Fix bug which caused corrupted directories if there are 4 or 8 bytes left over in a directory page when optimizing/reindexing a directory.
/external/e2fsprogs/e2fsck/rehash.c
|
850d05e9aa405497e57c72090b9561af98b1b661 |
|
25-Jul-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add e2fsck -D option which optimizes/compresses directories. General cleanup of rehash code. (Fixed a few bugs, reformatted code to make it more maintainable, etc.)
/external/e2fsprogs/e2fsck/rehash.c
|
b7a00563b22b0ea47ddc7117508c0b8e0d65df43 |
|
20-Jul-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add support to e2fsck to reindex directories to use hash trees.
/external/e2fsprogs/e2fsck/rehash.c
|