/*
* capability
*/
-#ifdef __KERNEL__
#include <linux/crypto.h>
-#endif
#include <lustre/lustre_idl.h>
#define CAPA_TIMEOUT 1800 /* sec, == 30 min */
void capa_cpy(void *dst, struct obd_capa *ocapa);
static inline struct obd_capa *alloc_capa(int site)
{
-#ifdef __KERNEL__
struct obd_capa *ocapa;
if (unlikely(site != CAPA_SITE_CLIENT && site != CAPA_SITE_SERVER))
INIT_HLIST_NODE(&ocapa->u.tgt.c_hash);
return ocapa;
-#else
- return ERR_PTR(-EOPNOTSUPP);
-#endif
}
static inline struct obd_capa *capa_get(struct obd_capa *ocapa)