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.
bitmap-optimize
Theodore Ts'o 2003-04-17 21:55:38 -04:00
parent 2ecaaf6557
commit 12dd69f5ff
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-04-17 Theodore Ts'o <tytso@mit.edu>
* 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.
2003-04-16 Theodore Ts'o <tytso@mit.edu>
* unix.c: Bracket progress bar output with control-A and control-B
@ -6,7 +12,8 @@
progress bar.
(PRS): Use setvbuf instead of setbuf to force stdout and
stderr to be non-buffered when the stdout/stderr are a pipe.
This fixes a cosmetic problem when using e2fsck under logsave.
This fixes a cosmetic problem when using e2fsck under
logsave.
2003-04-12 Theodore Ts'o <tytso@mit.edu>
@ -35,7 +42,8 @@
2003-03-14 Theodore Ts'o <tytso@mit.edu>
* problem.c, problem.h (PR_2_REPORT_DUP_DIRENT): Add new problem code.
* problem.c, problem.h (PR_2_REPORT_DUP_DIRENT): Add new problem
code.
* pass2.c (check_dir_block): Check for duplicate filenames within
a single directory block (because this is the easy case;

View File

@ -175,7 +175,7 @@ static EXT2_QSORT_TYPE name_cmp(const void *a, const void *b)
else if (he_a->dir->name_len < he_b->dir->name_len)
ret = -1;
else
ret = 0;
ret = he_b->dir->inode - he_a->dir->inode;
}
return ret;
}