Skip to contentSkip to conversation

xfsprogs: Fix for xfstest 252 hang on ext4

PATCH New Allison Henderson 1 participant 1 message May 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsprogs: Fix for xfstest 252 hang on ext4

Xfstests 252 hangs on ext4 due to a loop in xfsprogs that does not exit.

---
:100644 100644 fa990cc... 81fc92c... M io/fiemap.c

 io/fiemap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
io/fiemap.c +1 -1
index fa990cc..81fc92c 100644
@@ -246,7 +246,7 @@ fiemap_f(
 		       flg_w, _("FLAGS"));
 	}
 
-	while (!last && ((cur_extent + 1) != max_extents)) {
+	while (!last && (cur_extent <= max_extents)) {
 		if (max_extents)
 			num_extents = min(num_extents,
 					  max_extents - (cur_extent + 1));
Signature · 1 line
1.7.1