/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * * This file is part of Lustre, http://www.lustre.org * * Lustre public user-space interface definitions. */ #ifndef _LINUX_LUSTRE_USER_H #define _LINUX_LUSTRE_USER_H #ifdef HAVE_ASM_TYPES_H #include #else #include #endif #ifndef __KERNEL__ # define NEED_QUOTA_DEFS # ifdef HAVE_QUOTA_SUPPORT # include # endif #else # include # ifdef HAVE_QUOTA_SUPPORT # include # endif #endif /* * asm-x86_64/processor.h on some SLES 9 distros seems to use * kernel-only typedefs. fortunately skipping it altogether is ok * (for now). */ #define __ASM_X86_64_PROCESSOR_H #ifdef __KERNEL__ #include #else #include #include #endif #if defined(__x86_64__) || defined(__ia64__) || defined(__ppc64__) || \ defined(__craynv) || defined (__mips64__) typedef struct stat lstat_t; #define lstat_f lstat #define HAVE_LOV_USER_MDS_DATA #elif defined(__USE_LARGEFILE64) || defined(__KERNEL__) typedef struct stat64 lstat_t; #define lstat_f lstat64 #define HAVE_LOV_USER_MDS_DATA #endif #endif /* _LUSTRE_USER_H */