[f2fs-dev] [RFC PATCH v2 2/3] build: add inline extent build support

Yongpeng Yang <[email protected]>
Newsgroups net.sourceforge.lists.linux-f2fs-devel
Message-ID <[email protected]>
From: Yongpeng Yang <[email protected]>

Add build system configuration for inline extent feature:
- Add --disable-inline-extent configure option (enabled by default)
- Add iextent.c and iextent.h to fsck build sources
- Define HAVE_INLINE_EXTENT macro when feature is enabled

Signed-off-by: Yongpeng Yang <[email protected]>
---
 configure.ac     | 10 ++++++++++
 fsck/Makefile.am |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4d91605..0d140b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,16 @@ AC_ARG_WITH([lz4],
 	[],
 	[with_lz4=check])
 
+AC_ARG_ENABLE([inline-extent],
+	[AS_HELP_STRING([--disable-inline-extent],
+	  [Disable inline extent support (enabled by default)])],
+	[],
+	[enable_inline_extent=yes])
+
+AS_IF([test "x$enable_inline_extent" = "xyes"],
+	[AC_DEFINE([HAVE_INLINE_EXTENT], [1],
+		[Define if inline extent support is enabled])])
+
 # Checks for programs.
 AC_PROG_CC
 AM_PROG_AR
diff --git a/fsck/Makefile.am b/fsck/Makefile.am
index f0d7f87..9694538 100644
--- a/fsck/Makefile.am
+++ b/fsck/Makefile.am
@@ -4,12 +4,12 @@ AM_CPPFLAGS = ${libuuid_CFLAGS} -I$(top_srcdir)/include
 AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64
 sbin_PROGRAMS = fsck.f2fs
 noinst_HEADERS = common.h dict.h dqblk_v2.h f2fs.h fsck.h node.h quotaio.h \
-		quotaio_tree.h quotaio_v2.h xattr.h compress.h inject.h
+		quotaio_tree.h quotaio_v2.h xattr.h compress.h inject.h iextent.h
 include_HEADERS = $(top_srcdir)/include/quota.h
 fsck_f2fs_SOURCES = main.c fsck.c dump.c mount.c defrag.c resize.c \
 		node.c segment.c dir.c sload.c xattr.c compress.c \
 		dict.c mkquota.c quotaio.c quotaio_tree.c quotaio_v2.c \
-		inject.c
+		inject.c iextent.c
 fsck_f2fs_LDADD = ${libselinux_LIBS} ${libuuid_LIBS} \
 	${liblzo2_LIBS} ${liblz4_LIBS} ${libwinpthread_LIBS} \
 	$(top_builddir)/lib/libf2fs.la
-- 
2.43.0



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.