Skip to content
Permalink
1139b72d5e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
65 lines (51 sloc) 1.8 KB
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
#ifndef __PVFS2_HINT_H
#define __PVFS2_HINT_H
#include "pvfs2-types.h"
/* these are for tracing requests */
#define PVFS_HINT_REQUEST_ID_NAME "pvfs.hint.request_id"
#define PVFS_HINT_CLIENT_ID_NAME "pvfs.hint.client_id"
#define PVFS_HINT_HANDLE_NAME "pvfs.hint.handle"
#define PVFS_HINT_OP_ID_NAME "pvfs.hint.op_id"
#define PVFS_HINT_RANK_NAME "pvfs.hint.rank"
#define PVFS_HINT_SERVER_ID_NAME "pvfs.hint.server_id"
/* these are file creation parameters */
#define PVFS_HINT_DISTRIBUTION_NAME "pvfs.hint.disribution"
#define PVFS_HINT_DFILE_COUNT_NAME "pvfs.hint.dfile_count"
#define PVFS_HINT_LAYOUT_NAME "pvfs.hint.layout"
#define PVFS_HINT_SERVERLIST_NAME "pvfs.hint.serverlist"
#define PVFS_HINT_NOCACHE_NAME "pvfs.hint.nocache"
typedef struct PVFS_hint_s *PVFS_hint;
#define PVFS_HINT_NULL NULL
int PVFS_hint_add(PVFS_hint *hint,
const char *name,
int length,
void *value);
int PVFS_hint_replace(PVFS_hint *hint,
const char *name,
int length,
void *value);
int PVFS_hint_copy(PVFS_hint old_hint, PVFS_hint *new_hint);
void PVFS_hint_free(PVFS_hint hint);
/* check to see if a hint has already been added */
int PVFS_hint_check(PVFS_hint *hints, const char *name);
/* check to see if any hints should be transferred */
int PVFS_hint_check_transfer(PVFS_hint *hints);
/*
* function allows users to specify hints in an environment variable.
*/
int PVFS_hint_import_env(PVFS_hint *out_hint);
#endif /* __PVFS2_HINT_H */
/*
* Local variables:
* mode: c
* c-indent-level: 4
* c-basic-offset: 4
* End:
*
* vim: ft=c ts=8 sts=4 sw=4 expandtab
*/