mirror of https://github.com/vitalif/e2fsprogs
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
parent
3fcd8fe8ac
commit
605cf6edaf
|
@ -181,13 +181,6 @@ static int filefrag_fiemap(int fd, int blk_shift, int *num_extents)
|
||||||
|
|
||||||
memset(fiemap, 0, sizeof(struct fiemap));
|
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)
|
if (sync_file)
|
||||||
flags |= FIEMAP_FLAG_SYNC;
|
flags |= FIEMAP_FLAG_SYNC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue