From c4ab66c526c2f9bdff2e9abb817287b585e2e95d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 17 Nov 2011 15:15:38 -0500 Subject: debugfs: add filefrag command Add the ability to report on the fragmentation of a file on a file system opened using debugfs. Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index 9edbcb56..a9795a36 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -287,7 +287,7 @@ debug_cmds.c debug_cmds.h: $(top_srcdir)/debugfs/debug_cmds.ct DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \ lsdel.o dump.o set_fields.o logdump.o htree.o unused.o \ - e2freefrag.o + e2freefrag.o filefrag.o debugfs.o: $(top_srcdir)/debugfs/debugfs.c $(E) " CC $<" @@ -337,6 +337,10 @@ e2freefrag.o: $(top_srcdir)/misc/e2freefrag.c $(E) " CC $<" $(Q) $(CC) $(ALL_CFLAGS) -DDEBUGFS -I$(top_srcdir)/debugfs -c $< -o $@ +filefrag.o: $(top_srcdir)/debugfs/filefrag.c + $(E) " CC $<" + $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ + tst_extents: $(srcdir)/extent.c extent_dbg.c $(DEBUG_OBJS) $(DEPLIBSS) \ $(LIBE2P) $(DEPLIBUUID) $(DEPLIBBLKID) $(DEPLIBCOM_ERR) $(E) " LD $@" -- cgit v1.2.3