From 5e96c5721d58acfbf9d76b62214f6ae421fe4e6b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 14 Nov 2011 23:31:24 -0500 Subject: debugfs: add the freefrag command The freefrag command provides the functionality of e2freefrag on the currently open file system in debugfs. Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/ext2fs') diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index 2714feeb..9edbcb56 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -286,7 +286,8 @@ debug_cmds.c debug_cmds.h: $(top_srcdir)/debugfs/debug_cmds.ct $(Q) $(MK_CMDS) $(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 + lsdel.o dump.o set_fields.o logdump.o htree.o unused.o \ + e2freefrag.o debugfs.o: $(top_srcdir)/debugfs/debugfs.c $(E) " CC $<" @@ -332,6 +333,10 @@ unused.o: $(top_srcdir)/debugfs/unused.c $(E) " CC $<" $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ +e2freefrag.o: $(top_srcdir)/misc/e2freefrag.c + $(E) " CC $<" + $(Q) $(CC) $(ALL_CFLAGS) -DDEBUGFS -I$(top_srcdir)/debugfs -c $< -o $@ + tst_extents: $(srcdir)/extent.c extent_dbg.c $(DEBUG_OBJS) $(DEPLIBSS) \ $(LIBE2P) $(DEPLIBUUID) $(DEPLIBBLKID) $(DEPLIBCOM_ERR) $(E) " LD $@" -- cgit v1.2.3