return rc1 ?: rc2;
}
+#ifdef HAVE_QUOTA_SUPPORT
static inline int obd_quotacheck(struct obd_export *exp,
struct obd_quotactl *oqctl)
{
#endif
RETURN(rc);
}
+#endif
static inline int obd_health_check(struct obd_device *obd)
{
obd_ioctl_freedata(buf, len);
RETURN(rc);
}
+#ifdef HAVE_QUOTA_SUPPORT
case OBD_IOC_QUOTACHECK: {
struct obd_quotactl *oqctl;
int rc, error = 0;
OBD_FREE_PTR(check);
RETURN(rc);
}
-#ifdef HAVE_QUOTA_SUPPORT
case OBD_IOC_QUOTACTL: {
struct if_quotactl *qctl;
struct obd_quotactl *oqctl;
#include <lustre_ver.h>
#include <linux/lustre_version.h>
#include <lustre_disk.h> /* for s2sbi */
+
+#ifndef HAVE_LE_TYPES
+typedef __u16 __le16;
+typedef __u32 __le32;
+#endif
/*
struct lustre_intent_data {
#ifndef EXT3_XATTR_INDEX_TRUSTED /* temporary until we hit l28 kernel */
#define EXT3_XATTR_INDEX_TRUSTED 4
#endif
+#ifndef XATTR_NO_CTIME
+#define XATTR_NO_CTIME 0x80
+#endif
static char *fsfilt_ext3_get_label(struct super_block *sb)
{
/*******************************************************************************/
-#ifdef __KERNEL__
+#if defined(__KERNEL__) && defined(HAVE_QUOTA_SUPPORT)
/*
* define ( lqs <-> qctxt ) hash operations and function define
*/
MODULES := lquota
-MODULES += quotactl_test quotacheck_test
lquota-objs := quota_check.o quota_context.o quota_ctl.o quota_interface.o
lquota-objs += quota_master.o quota_adjust_qunit.o lproc_quota.o
# include <linux/init.h>
# include <linux/fs.h>
# include <linux/jbd.h>
-# include <linux/ext3_fs.h>
# include <linux/quota.h>
# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
# include <linux/smp_lock.h>
# include <linux/version.h>
# include <linux/module.h>
# include <linux/init.h>
-# include <linux/fs.h>
-# include <linux/jbd.h>
-# include <linux/ext3_fs.h>
# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
# include <linux/smp_lock.h>
# include <linux/buffer_head.h>
# include <linux/init.h>
# include <linux/fs.h>
# include <linux/jbd.h>
-# include <linux/ext3_fs.h>
# include <linux/quota.h>
# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
# include <linux/smp_lock.h>
# include <linux/init.h>
# include <linux/fs.h>
# include <linux/jbd.h>
-# include <linux/ext3_fs.h>
# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
# include <linux/smp_lock.h>
# include <linux/buffer_head.h>
#include <dirent.h>
#include <time.h>
#include <ctype.h>
+#include <sys/quota.h>
#include <lnet/api-support.h>
#include <lnet/lnetctl.h>
check_lustre_disk_data();
check_ll_user_fiemap();
check_ll_fiemap_extent();
- printf("#ifdef LIBLUSTRE_POSIX_ACL\n");
+ printf("#if defined(LIBLUSTRE_POSIX_ACL) && defined(CONFIG_FS_POSIX_ACL)\n");
#ifndef LIBLUSTRE_POSIX_ACL
#error build generator without LIBLUSTRE_POSIX_ACL defined - produce wrong check code.
#endif