Skip to contentSkip to conversation

f2fs-tools: add fibmap

PATCH New Changman Lee 1 participant 1 message Jul 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs-tools: add fibmap

This is to get physical location of file data. We can check the percentage of fragmentation on a file.

Note that it uses fsync to get exact blkaddr.

---
 fsck/Makefile.am |    4 ++-
 fsck/fibmap.c    |  103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+), 1 deletion(-)
 create mode 100644 fsck/fibmap.c
fsck/Makefile.am +3 -1
index 3258e47..c7be063 100644
@@ -2,9 +2,11 @@
 
 AM_CPPFLAGS = ${libuuid_CFLAGS} -I$(top_srcdir)/include
 AM_CFLAGS = -Wall
-sbin_PROGRAMS = fsck.f2fs
+sbin_PROGRAMS = fsck.f2fs fibmap
 fsck_f2fs_SOURCES = main.c fsck.c dump.c mount.c
 fsck_f2fs_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la
 
+fibmap_SOURCES = fibmap.c
+
 install-data-hook:
 	ln -sf fsck.f2fs $(DESTDIR)/$(sbindir)/dump.f2fs
fsck/fibmap.c new file +103 -0

103 lines not on this page · raw message

Signature · 9 lines
1.7.10.4


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk