From 605cf6edaf6fce6a3810cda24c6ceca90af1a096 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 9 Oct 2011 18:18:01 -0400 Subject: [PATCH] filefrag: fix infinite loop in filefrag Commit a00be17e4768 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" --- misc/filefrag.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/misc/filefrag.c b/misc/filefrag.c index 324506a3..0583e916 100644 --- a/misc/filefrag.c +++ b/misc/filefrag.c @@ -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; -- 2.11.0