#ifndef LIBLUSTRE_H__
#define LIBLUSTRE_H__
+/** \defgroup liblustre liblustre
+ *
+ * @{
+ */
+
#ifdef __KERNEL__
#error Kernel files should not #include <liblustre.h>
#endif
#include <lustre_export.h>
#include <lustre_net.h>
+/** @} liblustre */
+
#endif
#ifndef __IAM_ULIB_H__
#define __IAM_ULIB_H__
+/** \defgroup libiam libiam
+ *
+ * @{
+ */
+
#define DX_FMT_NAME_LEN 16
*/
int iam_polymorph(char *filename, unsigned long mode);
+/** @} libiam */
#endif
#ifndef _LIBLUSTREAPI_H_
#define _LIBLUSTREAPI_H_
+/** \defgroup llapi llapi
+ *
+ * @{
+ */
+
#include <lustre/lustre_user.h>
/* Initially allocate for these many OSTs, realloc if needed */
int *msgsize);
extern int llapi_copytool_free(struct hsm_action_list **hal);
+/** @} llapi */
+
#endif
#ifndef _LUSTRE_USER_H
#define _LUSTRE_USER_H
+/** \defgroup lustreuser lustreuser
+ *
+ * @{
+ */
+
#include <lustre/ll_fiemap.h>
#if defined(__linux__)
#include <linux/lustre_user.h>
cfs_size_round(hai->hai_len));
}
+/** @} lustreuser */
#endif /* _LUSTRE_USER_H */
#ifndef __LINUX_CAPA_H_
#define __LINUX_CAPA_H_
+/** \defgroup capa capa
+ *
+ * @{
+ */
+
/*
* capability
*/
};
#define BYPASS_CAPA (struct lustre_capa *)ERR_PTR(-ENOENT)
+
+/** @} capa */
+
#endif /* __LINUX_CAPA_H_ */
#ifndef _LUSTRE_CFG_H
#define _LUSTRE_CFG_H
+/** \defgroup cfg cfg
+ *
+ * @{
+ */
+
/*
* 1cf6
* lcfG
#define INVALID_UID (-1)
+/** @} cfg */
+
#endif // _LUSTRE_CFG_H
#ifndef _LUSTRE_DEBUG_H
#define _LUSTRE_DEBUG_H
+/** \defgroup debug debug
+ *
+ * @{
+ */
+
#include <lustre_net.h>
#include <obd.h>
void dump_lsm(int level, struct lov_stripe_md *lsm);
int block_debug_setup(void *addr, int len, __u64 off, __u64 id);
int block_debug_check(char *who, void *addr, int len, __u64 off, __u64 id);
+
+/** @} debug */
+
#endif
#ifndef _LUSTRE_DISK_H
#define _LUSTRE_DISK_H
+/** \defgroup disk disk
+ *
+ * @{
+ */
+
#include <libcfs/libcfs.h>
#include <lnet/types.h>
#endif
+/** @} disk */
+
#endif // _LUSTRE_DISK_H
#ifndef _LUSTRE_DLM_H__
#define _LUSTRE_DLM_H__
+/** \defgroup ldlm ldlm
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_dlm.h>
#elif defined(__APPLE__)
void ldlm_pool_set_limit(struct ldlm_pool *pl, __u32 limit);
void ldlm_pool_add(struct ldlm_pool *pl, struct ldlm_lock *lock);
void ldlm_pool_del(struct ldlm_pool *pl, struct ldlm_lock *lock);
+
+/** @} ldlm */
+
#endif
#ifndef _LUSTRE_EACL_H
#define _LUSTRE_EACL_H
+/** \defgroup eacl eacl
+ *
+ * @{
+ */
+
#ifdef CONFIG_FS_POSIX_ACL
# ifdef HAVE_XATTR_ACL
#endif /* CONFIG_FS_POSIX_ACL */
+/** @} eacl */
+
#endif
#ifndef __EXPORT_H
#define __EXPORT_H
+/** \defgroup export export
+ *
+ * @{
+ */
+
#include <lprocfs_status.h>
#include <lustre/lustre_idl.h>
#include <lustre_dlm.h>
extern struct obd_export *class_conn2export(struct lustre_handle *conn);
extern struct obd_device *class_conn2obd(struct lustre_handle *conn);
+/** @} export */
+
#endif /* __EXPORT_H */
#ifndef __LINUX_FID_H
#define __LINUX_FID_H
+/** \defgroup fid fid
+ *
+ * @{
+ */
+
/*
* struct lu_fid
*/
dst->lsr_mdt = be32_to_cpu(src->lsr_mdt);
}
+/** @} fid */
+
#endif /* __LINUX_FID_H */
#ifndef __LINUX_FLD_H
#define __LINUX_FLD_H
+/** \defgroup fld fld
+ *
+ * @{
+ */
+
#include <lustre/lustre_idl.h>
#include <lustre_mdt.h>
#include <dt_object.h>
int fld_client_del_target(struct lu_client_fld *fld,
__u64 idx);
+/** @} fld */
+
#endif
#ifndef _LUSTRE_HA_H
#define _LUSTRE_HA_H
+/** \defgroup ha ha
+ *
+ * @{
+ */
+
struct obd_import;
struct obd_export;
struct obd_device;
void ptlrpc_activate_timeouts(struct obd_import *imp);
void ptlrpc_deactivate_timeouts(struct obd_import *imp);
+/** @} ha */
+
#endif
#ifndef __LUSTRE_HANDLES_H_
#define __LUSTRE_HANDLES_H_
+/** \defgroup handles handles
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_handles.h>
#elif defined(__APPLE__)
int class_handle_init(void);
void class_handle_cleanup(void);
+/** @} handles */
+
#endif
#ifndef _LUSTRE_IDMAP_H
#define _LUSTRE_IDMAP_H
+/** \defgroup idmap idmap
+ *
+ * @{
+ */
+
#include <md_object.h>
#define CFS_NGROUPS_PER_BLOCK ((int)(CFS_PAGE_SIZE / sizeof(gid_t)))
extern struct lustre_idmap_table *lustre_idmap_init(void);
extern void lustre_idmap_fini(struct lustre_idmap_table *t);
+/** @} idmap */
+
#endif
#ifndef __IMPORT_H
#define __IMPORT_H
+/** \defgroup export export
+ *
+ * @{
+ */
+
#include <lustre_handles.h>
#include <lustre/lustre_idl.h>
extern struct obd_import *class_exp2cliimp(struct obd_export *);
extern struct obd_import *class_conn2cliimp(struct lustre_handle *);
+/** @} import */
+
#endif /* __IMPORT_H */
#ifndef _LUSTRE_LIB_H
#define _LUSTRE_LIB_H
+/** \defgroup lib lib
+ *
+ * @{
+ */
+
#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
#include <lustre_ver.h>
#define LIBLUSTRE_CLIENT (1)
#endif
+/** @} lib */
+
#endif /* _LUSTRE_LIB_H */
#ifndef _LL_H
#define _LL_H
+/** \defgroup lite lite
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_lite.h>
#elif defined(__APPLE__)
{
return ~0UL - value;
}
+
+/** @} lite */
+
#endif
#ifndef _LUSTRE_LOG_H
#define _LUSTRE_LOG_H
+/** \defgroup log log
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_log.h>
#elif defined(__APPLE__)
int lustre_end_log(struct super_block *sb, char *logname,
struct config_llog_instance *cfg);
+/** @} log */
+
#endif
#ifndef _LUSTRE_MDC_H
#define _LUSTRE_MDC_H
+/** \defgroup mdc mdc
+ *
+ * @{
+ */
+
#ifdef __KERNEL__
# include <linux/fs.h>
# include <linux/dcache.h>
int mdc_sendpage(struct obd_export *exp, const struct lu_fid *fid,
const struct page *page, int offset);
#endif
+
+/** @} mdc */
+
#endif
#ifndef _LUSTRE_MDS_H
#define _LUSTRE_MDS_H
+/** \defgroup mds mds
+ *
+ * @{
+ */
+
#include <lustre_handles.h>
#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
/* these are local flags, used only on the client, private */
#define M_CHECK_STALE 0200000000
+/** @} mds */
+
#endif
#ifndef __LINUX_MDT_H
#define __LINUX_MDT_H
+/** \defgroup mdt mdt
+ *
+ * @{
+ */
+
#include <lustre/lustre_idl.h>
#include <lustre_req_layout.h>
#include <md_object.h>
return (rc < 0 && -rc & ESERIOUS);
}
+/** @} mdt */
#endif
#ifndef _LUSTRE_NET_H
#define _LUSTRE_NET_H
+/** \defgroup net net
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_net.h>
#elif defined(__APPLE__)
/* ptlrpc/llog_client.c */
extern struct llog_operations llog_client_ops;
+/** @} net */
+
#endif
#ifndef _LUSTRE_PARAM_H
#define _LUSTRE_PARAM_H
+/** \defgroup param param
+ *
+ * @{
+ */
+
/* obd_config.c */
int class_find_param(char *buf, char *key, char **valp);
int class_get_next_param(char **params, char *copy);
#define PARAM_SRPC_UDESC "srpc.udesc.cli2mdt"
#define PARAM_SEC "security."
+/** @} param */
+
#endif /* _LUSTRE_PARAM_H */
#ifndef _LUSTRE_QUOTA_H
#define _LUSTRE_QUOTA_H
+/** \defgroup quota quota
+ *
+ * @{
+ */
+
#if defined(__linux__)
#include <linux/lustre_quota.h>
#elif defined(__APPLE__)
"admin_quotafile_v2.grp" /** group admin quotafile */\
}
+/** @} quota */
+
#endif /* _LUSTRE_QUOTA_H */
#ifndef _LUSTRE_REQ_LAYOUT_H__
#define _LUSTRE_REQ_LAYOUT_H__
+/** \defgroup req_layout req_layout
+ *
+ * @{
+ */
+
struct req_msg_field;
struct req_format;
struct req_capsule;
extern const struct req_msg_field RMF_FIEMAP_KEY;
extern const struct req_msg_field RMF_FIEMAP_VAL;
+/** @} req_layout */
+
#endif /* _LUSTRE_REQ_LAYOUT_H__ */
#ifndef _LUSTRE_SEC_H_
#define _LUSTRE_SEC_H_
+/** \defgroup sec sec
+ *
+ * @{
+ */
+
/*
* to avoid include
*/
LUSTRE_SEC_ALL = 3
};
+/** @} sec */
+
#endif /* _LUSTRE_SEC_H_ */
#ifndef _UPCALL_CACHE_H
#define _UPCALL_CACHE_H
+/** \defgroup ucache ucache
+ *
+ * @{
+ */
+
#define UC_CACHE_NEW 0x01
#define UC_CACHE_ACQUIRING 0x02
#define UC_CACHE_INVALID 0x04
void upcall_cache_cleanup(struct upcall_cache *hash);
#endif
+
+/** @} ucache */
+
#endif /* _UPCALL_CACHE_H */