public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-e2fsprogs] filefrag: fix fm_start in filefrag_fiemap loop
@ 2009-06-02 18:03 Peng Tao
  2009-06-02 18:35 ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: Peng Tao @ 2009-06-02 18:03 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, Peng Tao

Signed-off-by: Peng Tao <bergwolf@gmail.com>
---
 misc/filefrag.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/filefrag.c b/misc/filefrag.c
index 6bea2cd..7786646 100644
--- a/misc/filefrag.c
+++ b/misc/filefrag.c
@@ -239,7 +239,7 @@ int filefrag_fiemap(int fd, int blk_shift, int *num_extents)
 			n++;
 		}
 
-		fiemap->fm_start += fm_ext[i-1].fe_logical +
+		fiemap->fm_start = fm_ext[i-1].fe_logical +
 							fm_ext[i-1].fe_length;
 	} while (last == 0);
 
-- 
1.6.2.GIT


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-03 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-02 18:03 [PATCH-e2fsprogs] filefrag: fix fm_start in filefrag_fiemap loop Peng Tao
2009-06-02 18:35 ` Andreas Dilger
2009-06-03  1:21   ` Peng Tao
2009-06-03 21:37     ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox