summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-11-17 15:15:38 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-11-18 22:14:15 -0500
commitc4ab66c526c2f9bdff2e9abb817287b585e2e95d (patch)
tree98c42920a407baeb93350674f6c9d2069e68ef80 /lib
parent5e96c5721d58acfbf9d76b62214f6ae421fe4e6b (diff)
downloade2fsprogs-c4ab66c526c2f9bdff2e9abb817287b585e2e95d.tar.gz
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" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r--lib/ext2fs/Makefile.in6
1 files changed, 5 insertions, 1 deletions
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 $@"