f2fs-tools: add f2fstat to print f2fs's status in sec
PATCH 1/1 f2fs-tools: add f2fstat to print f2fs's status in sec
This tool prints /sys/kernel/debug/f2fs/status in sec so that we can monitor variation of f2fs status.
Signed-off-by Changman Lee <[email protected]>
--- Makefile.am | 2 +- configure.ac | 1 + tools/Makefile.am | 7 ++ tools/f2fstat.c | 216 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 225 insertions(+), 1 deletion(-) create mode 100644 tools/Makefile.am create mode 100644 tools/f2fstat.c
Makefile.am +1 -1
@@ -2,4 +2,4 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = man lib mkfs fsck +SUBDIRS = man lib mkfs fsck tools
configure.ac +1 -0
@@ -83,6 +83,7 @@ AC_CONFIG_FILES([ lib/Makefile mkfs/Makefile fsck/Makefile + tools/Makefile ]) AC_OUTPUT
tools/Makefile.am new file +7 -0
@@ -0,0 +1,7 @@ +## Makefile.am + +AM_CPPFLAGS = ${libuuid_CFLAGS} -I$(top_srcdir)/include +AM_CFLAGS = -Wall +sbin_PROGRAMS = f2fstat +f2fstat_SOURCES = f2fstat.c +f2fstat_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la
tools/f2fstat.c new file +216 -0
216 lines not on this page · raw message
Signature · 9 lines
1.7.10.4 ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk