Permalink
Cannot retrieve contributors at this time
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?
pvfs2-osd/include/pvfs2-hint.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65 lines (51 sloc)
1.8 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (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 | |
*/ |