summaryrefslogtreecommitdiff
path: root/lib/ext2fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-11-14 23:31:24 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-11-18 22:12:12 -0500
commit5e96c5721d58acfbf9d76b62214f6ae421fe4e6b (patch)
tree5d844c04cb1df98e34224d0cc28928d9325e68ca /lib/ext2fs
parente88c5a33a841026728fa7c9fcc4bcdca6580b495 (diff)
downloade2fsprogs-5e96c5721d58acfbf9d76b62214f6ae421fe4e6b.tar.gz
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" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r--lib/ext2fs/Makefile.in7
1 files changed, 6 insertions, 1 deletions
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 $@"