filefrag: fix infinite loop in filefrag

Commit a00be17e47 was missing a patch hunk needed to prevent
filefrag from looping forever when it is run without the -v option.

Addresses-Debian-Bug: #644792

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2011-10-09 18:18:01 -04:00
parent 3fcd8fe8ac
commit 605cf6edaf
1 changed files with 0 additions and 7 deletions

View File

@ -181,13 +181,6 @@ static int filefrag_fiemap(int fd, int blk_shift, int *num_extents)
memset(fiemap, 0, sizeof(struct fiemap));
/*
* If count (and therefore fm_extent_count) == 0, FIEMAP
* returns count of extents found without filling in details.
*/
if (!verbose)
count = 0;
if (sync_file)
flags |= FIEMAP_FLAG_SYNC;