capa


Data Structures

struct  capa_hmac_alg
struct  client_capa
struct  target_capa
struct  obd_capa
struct  filter_capa_key

Defines

#define CAPA_TIMEOUT   1800
#define CAPA_KEY_TIMEOUT   (24 * 60 * 60)
#define DEF_CAPA_HMAC_ALG(name, type, len, keylen)
#define DEBUG_CAPA(level, c, fmt, args...)
#define DEBUG_CAPA_KEY(level, k, fmt, args...)
#define BYPASS_CAPA   (struct lustre_capa *)ERR_PTR(-ENOENT)

Typedefs

typedef int(*) renew_capa_cb_t (struct obd_capa *, struct lustre_capa *)

Enumerations

enum  { CAPA_SITE_CLIENT = 0, CAPA_SITE_SERVER, CAPA_SITE_MAX }
enum  { LC_ID_NONE = 0, LC_ID_PLAIN = 1, LC_ID_CONVERT = 2 }

Functions

cfs_hlist_head_t * init_capa_hash (void)
void cleanup_capa_hash (cfs_hlist_head_t *hash)
obd_capa * capa_add (cfs_hlist_head_t *hash, struct lustre_capa *capa)
obd_capa * capa_lookup (cfs_hlist_head_t *hash, struct lustre_capa *capa, int alive)
int capa_hmac (__u8 *hmac, struct lustre_capa *capa, __u8 *key)
int capa_encrypt_id (__u32 *d, __u32 *s, __u8 *key, int keylen)
int capa_decrypt_id (__u32 *d, __u32 *s, __u8 *key, int keylen)
void capa_cpy (void *dst, struct obd_capa *ocapa)

Variables

cfs_list_t capa_list []
cfs_spinlock_t capa_lock
int capa_count []
cfs_mem_cache_t * capa_cachep

Define Documentation

#define DEBUG_CAPA ( level,
c,
fmt,
args...   ) 

Value:

do {                                                                           \
CDEBUG(level, fmt " capability@%p fid "DFID" opc "LPX64" uid "LPU64" gid "     \
       LPU64" flags %u alg %d keyid %u timeout %u expiry %u\n",                \
       ##args, c, PFID(capa_fid(c)), capa_opc(c), capa_uid(c), capa_gid(c),    \
       capa_flags(c), capa_alg(c), capa_keyid(c), capa_timeout(c),             \
       capa_expiry(c));                                                        \
} while (0)

#define DEBUG_CAPA_KEY ( level,
k,
fmt,
args...   ) 

Value:

do {                                                                           \
CDEBUG(level, fmt " capability key@%p mdsid "LPU64" keyid %u\n",               \
       ##args, k, capa_key_mdsid(k), capa_key_keyid(k));                       \
} while (0)

#define DEF_CAPA_HMAC_ALG ( name,
type,
len,
keylen   ) 

Value:

[CAPA_HMAC_ALG_ ## type] = {                            \
        .ha_name         = name,                        \
        .ha_len          = len,                         \
        .ha_keylen       = keylen,                      \
}


Generated on Mon Apr 12 04:18:21 2010 for Lustre 1.10.0.40-0-g9a80ff7 by doxygen 1.4.7

Contact | About Sun | News | Employment | Privacy | Terms of Use | Trademarks | (C) 2008 Sun Microsystems, Inc.