fsck.f2fs: relocate common func and struct of fsck into lib
PATCH 1/1 fsck.f2fs: relocate common func and struct of fsck into lib
This patch moves common functions and structures of fsck into lib directory. The f2fs_do_mount function is used by other tools which want to use meta data of f2fs like a checkpoint, SIT, NAT etc.
Signed-off-by Changman Lee <[email protected]>
--- fsck/Makefile.am | 2 +- fsck/f2fs.h | 351 ----------------- fsck/fsck.h | 70 ---- fsck/mount.c | 1153 ------------------------------------------------------ include/f2fs.h | 421 ++++++++++++++++++++ lib/Makefile.am | 2 +- lib/mount.c | 1153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1576 insertions(+), 1576 deletions(-) delete mode 100644 fsck/f2fs.h delete mode 100644 fsck/mount.c create mode 100644 include/f2fs.h create mode 100644 lib/mount.c
fsck/Makefile.am +1 -1
@@ -3,7 +3,7 @@ AM_CPPFLAGS = ${libuuid_CFLAGS} -I$(top_srcdir)/include AM_CFLAGS = -Wall sbin_PROGRAMS = fsck.f2fs -fsck_f2fs_SOURCES = main.c fsck.c dump.c mount.c +fsck_f2fs_SOURCES = main.c fsck.c dump.c fsck_f2fs_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la install-data-hook:
fsck/f2fs.h deleted +0 -351
351 lines not on this page · raw message
fsck/fsck.h +0 -70
88 lines not on this page · raw message
fsck/mount.c deleted +0 -1153
1,153 lines not on this page · raw message
include/f2fs.h new file +421 -0
421 lines not on this page · raw message
lib/Makefile.am +1 -1
@@ -2,6 +2,6 @@ lib_LTLIBRARIES = libf2fs.la -libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c +libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c mount.c libf2fs_la_CFLAGS = -Wall libf2fs_la_CPPFLAGS = -I$(top_srcdir)/include
lib/mount.c new file +1153 -0
972 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 9 lines
1.8.3.2 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
Part of the diff is not shown here. View the raw message.