- this allows userland programs to include <lustre/lustre_idl.h>
from stardard include directories
- useless checks for LUSTRE_VERSION_CODE are removed
i=johann
/* Defn's shared with user-space. */
#include <lustre/lustre_user.h>
/* Defn's shared with user-space. */
#include <lustre/lustre_user.h>
#include <lustre/ll_fiemap.h>
#include <lustre/ll_fiemap.h>
-#include <libcfs/kp30.h>
-
/*
* this file contains all data structures used in Lustre interfaces:
* - obdo and obd_request records
/*
* this file contains all data structures used in Lustre interfaces:
* - obdo and obd_request records
extern void lustre_swab_connect(struct obd_connect_data *ocd);
extern void lustre_swab_connect(struct obd_connect_data *ocd);
-/* b1_6 has smaller body. The defines below is for interoperability */
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2,0,0,0)
#define PTLRPC_INTEROP_1_6 1
#define PTLRPC_BODY_MIN_SIZE offsetof(struct ptlrpc_body, pb_pre_versions)
#define PTLRPC_INTEROP_1_6 1
#define PTLRPC_BODY_MIN_SIZE offsetof(struct ptlrpc_body, pb_pre_versions)
-#else
-#define PTLRPC_BODY_MIN_SIZE sizeof(struct ptlrpc_body)
-#endif
/*
* Supported checksum algorithms. Up to 32 checksum types are supported.
/*
* Supported checksum algorithms. Up to 32 checksum types are supported.
#define QDATA_CLR_GRP(qdata) ((qdata)->qd_flags &= ~LQUOTA_FLAGS_GRP)
#define QDATA_CLR_CHANGE_QS(qdata) ((qdata)->qd_flags &= ~LQUOTA_FLAGS_CHG_QS)
#define QDATA_CLR_GRP(qdata) ((qdata)->qd_flags &= ~LQUOTA_FLAGS_GRP)
#define QDATA_CLR_CHANGE_QS(qdata) ((qdata)->qd_flags &= ~LQUOTA_FLAGS_CHG_QS)
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(1, 9, 0, 0)
/* this will be used when OBD_CONNECT_QUOTA64 is set */
struct qunit_data_old2 {
__u32 qd_id; /* ID appiles to (uid, gid) */
/* this will be used when OBD_CONNECT_QUOTA64 is set */
struct qunit_data_old2 {
__u32 qd_id; /* ID appiles to (uid, gid) */
* Block quota or file quota occupy one bit */
__u64 qd_count; /* acquire/release count (bytes for block quota) */
};
* Block quota or file quota occupy one bit */
__u64 qd_count; /* acquire/release count (bytes for block quota) */
};
-#else
-#warning "remove quota code above for format absolete in new release"
-#endif
extern void lustre_swab_qdata(struct qunit_data *d);
extern void lustre_swab_qdata(struct qunit_data *d);
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(1, 9, 0, 0)
extern void lustre_swab_qdata_old2(struct qunit_data_old2 *d);
extern void lustre_swab_qdata_old2(struct qunit_data_old2 *d);
-#else
-#warning "remove quota code above for format absolete in new release"
-#endif
extern int quota_get_qdata(void*req, struct qunit_data *qdata,
int is_req, int is_exp);
extern int quota_copy_qdata(void *request, struct qunit_data *qdata,
extern int quota_get_qdata(void*req, struct qunit_data *qdata,
int is_req, int is_exp);
extern int quota_copy_qdata(void *request, struct qunit_data *qdata,
#include <lvfs.h>
#include <lprocfs_status.h>
#include <lustre/lustre_idl.h>
#include <lvfs.h>
#include <lprocfs_status.h>
#include <lustre/lustre_idl.h>
/* global variables */
extern struct lprocfs_stats *obd_memory;
/* global variables */
extern struct lprocfs_stats *obd_memory;