LB_LDISKFS_RELEASE
LB_LDISKFS_EXT_DIR
LB_LDISKFS_BUILD
- LB_LDISKFS_DEFINE_OPTIONS
+ AC_DEFINE(HAVE_LDISKFS_OSD, 1, Enable ldiskfs osd)
fi
#
])
#
-# LB_LDISKFS_DEFINE_OPTIONS
-#
-# Enable config options related to ldiskfs. These are used by ldiskfs,
-# lvfs, and the osd-ldiskfs code (which includes ldiskfs headers.)
-#
-AC_DEFUN([LB_LDISKFS_DEFINE_OPTIONS],
-[
-AC_DEFINE(HAVE_LDISKFS_OSD, 1, Enable ldiskfs osd)
-
-AC_DEFINE(CONFIG_LDISKFS_FS_XATTR, 1,
- [enable extended attributes for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFS_FS_POSIX_ACL, 1,
- [enable posix acls for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFS_FS_SECURITY, 1,
- [enable fs security for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_POSIX_ACL, 1,
- [enable posix acls for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_XATTR, 1,
- [enable extented attributes for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_SECURITY, 1,
- [enable fs security for ldiskfs])
-])
-
-#
# Optionally configure/make the ldiskfs sources. If the sources are
# determined to reside in-tree this feature will automatically be
# enabled. If the sources are not in-tree it will be disabled.
# add -include config.h
#
AC_DEFUN([LB_CONFIG_HEADERS],[
- AC_CONFIG_HEADERS([config.h])
+ AC_CONFIG_HEADERS([config.h ldiskfs/ldiskfs_config.h])
CPPFLAGS="-include $PWD/config.h $CPPFLAGS"
EXTRA_KCFLAGS="-include $PWD/config.h $EXTRA_KCFLAGS"
AC_SUBST(EXTRA_KCFLAGS)
fi
])
-#
-# LB_LDISKFS_DEFINE_OPTIONS
-#
-# Enable config options related to ldiskfs. These are used by ldiskfs,
-# lvfs, and the osd-ldiskfs code (which includes ldiskfs headers.)
-#
-AC_DEFUN([LB_LDISKFS_DEFINE_OPTIONS],
-[
-AC_DEFINE(CONFIG_LDISKFS_FS_XATTR, 1,
- [enable extended attributes for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFS_FS_POSIX_ACL, 1,
- [enable posix acls for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFS_FS_SECURITY, 1,
- [enable fs security for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_POSIX_ACL, 1,
- [enable posix acls for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_XATTR, 1,
- [enable extented attributes for ldiskfs])
-AC_DEFINE(CONFIG_LDISKFSDEV_FS_SECURITY, 1,
- [enable fs security for ldiskfs])
-])
-
AC_DEFUN([LB_LDISKFS_SYMVERS],
[
AC_MSG_CHECKING([ldiskfs module symbols])
if test x$enable_server$enable_dist = xyesno ; then
LB_LDISKFS_EXT_DIR
LB_LDISKFS_EXT_SOURCE
-LB_LDISKFS_DEFINE_OPTIONS
fi
AC_SUBST(ac_configure_args)
###############################
EXTRA_CFLAGS += -I@LINUX@/fs -I@LDISKFSDIR@
+EXTRA_CFLAGS += -include @abs_top_builddir@/ldiskfs/ldiskfs_config.h
EXTRA_CFLAGS += -include @abs_top_builddir@/config.h
obj-m := ldiskfs.o
--- /dev/null
+/* enable posix acls for ldiskfs */
+#define CONFIG_LDISKFSDEV_FS_POSIX_ACL 1
+
+/* enable fs security for ldiskfs */
+#define CONFIG_LDISKFSDEV_FS_SECURITY 1
+
+/* enable extented attributes for ldiskfs */
+#define CONFIG_LDISKFSDEV_FS_XATTR 1
+
+/* enable posix acls for ldiskfs */
+#define CONFIG_LDISKFS_FS_POSIX_ACL 1
+
+/* enable fs security for ldiskfs */
+#define CONFIG_LDISKFS_FS_SECURITY 1
+
+/* - enable extended attributes for ldiskfs */
+#define CONFIG_LDISKFS_FS_XATTR 1
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
+#include <ldiskfs/ldiskfs_config.h>
#include <ext4/ext4.h>
#include <ext4/ext4_jbd2.h>
#include <linux/version.h>
/* struct dirent64 */
#include <linux/dirent.h>
+#include <ldiskfs/ldiskfs_config.h>
#include <ldiskfs/ldiskfs.h>
#include <ldiskfs/ldiskfs_jbd2.h>
/* prerequisite for linux/xattr.h */
#include <linux/fs.h>
-/* ext_depth() */
-#include <ldiskfs/ldiskfs.h>
-#include <ldiskfs/ldiskfs_jbd2.h>
-#include <ldiskfs/ldiskfs_extents.h>
-
/*
* struct OBD_{ALLOC,FREE}*()
* OBD_FAIL_CHECK
#include "osd_internal.h"
+/* ext_depth() */
+#include <ldiskfs/ldiskfs_extents.h>
+
#ifndef HAVE_PAGE_CONSTANT
#define mapping_cap_page_constant_write(mapping) 0
#define SetPageConstant(page) do {} while (0)