Main Page | Modules | Data Structures | File List | Data Fields | Globals

pvfs2-migrate-collection utility


Files

file  pvfs2-migrate-collection.c

Defines

#define KEYVAL_MAX_NUM_BUCKETS_0_0_1   32
#define BSTREAM_MAX_NUM_BUCKETS_0_0_1   64
#define DBPF_KEYVAL_GET_BUCKET_0_0_1(__handle, __id)

Functions

void print_help (char *progname)
int parse_args (int argc, char **argv, options_t *opts)
int src_get_version (char *storage_space, TROVE_coll_id coll_id, char *coll_name, char *ver_string, int ver_string_max)
int src_get_version_0_0_1 (char *storage_space, TROVE_coll_id coll_id, char *ver_string, int ver_string_max)
int translate_0_0_1 (char *storage_space, char *old_coll_path, char *coll_name, TROVE_coll_id coll_id)
int translate_coll_eattr_0_0_1 (char *old_coll_path, TROVE_coll_id coll_id, char *coll_name, TROVE_context_id trove_context)
int translate_dspace_attr_0_0_1 (char *old_coll_path, TROVE_coll_id coll_id, char *coll_name, TROVE_context_id trove_context)
int translate_keyvals_0_0_1 (char *old_coll_path, TROVE_coll_id coll_id, char *coll_name, TROVE_context_id trove_context)
int translate_bstreams_0_0_1 (char *storage_space, char *old_coll_path, TROVE_coll_id coll_id, char *coll_name, TROVE_context_id trove_context)
int translate_keyval_db_0_0_1 (TROVE_coll_id coll_id, char *full_db_path, TROVE_handle handle, char *coll_name, TROVE_context_id trove_context)

Variables

int DEF_KEY_SIZE = 4096
int DEF_DATA_SIZE = 8192

Define Documentation

#define BSTREAM_MAX_NUM_BUCKETS_0_0_1   64
 

number of bstream buckets used in DBPF 0.0.1

#define DBPF_KEYVAL_GET_BUCKET_0_0_1 __handle,
__id   ) 
 

Value:

(((__id << ((sizeof(__id) - 1) * 8)) | __handle) %                       \
   KEYVAL_MAX_NUM_BUCKETS_0_0_1)
macros to resolve handle to db file name in DBPF 0.0.1

#define KEYVAL_MAX_NUM_BUCKETS_0_0_1   32
 

number of keyval buckets used in DBPF 0.0.1


Function Documentation

int parse_args int  argc,
char **  argv,
options_t *  opts
[static]
 

< parsed command line options

Parameters:
argv  < argc from main() routine
opts  < argv from main() routine

Here is the call graph for this function:

void print_help char *  progname  )  [static]
 

Prints help for command line arguments.

int src_get_version char *  storage_space,
TROVE_coll_id  coll_id,
char *  coll_name,
char *  ver_string,
int  ver_string_max
[static]
 

Retrieves the version number from a trove collection; will try multiple methods if needed.

Returns:
0 on succes, -1 on failure
Parameters:
storage_space  path to storage space
coll_id  collection id
coll_name  collection name
ver_string  version in string format
ver_string_max  maximum size of version string

Here is the call graph for this function:

int src_get_version_0_0_1 char *  storage_space,
TROVE_coll_id  coll_id,
char *  ver_string,
int  ver_string_max
[static]
 

Reads the version number from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
storage_space  path to storage space
coll_id  collection id
ver_string  version in string format
ver_string_max  maximum size of version string

int translate_0_0_1 char *  storage_space,
char *  old_coll_path,
char *  coll_name,
TROVE_coll_id  coll_id
[static]
 

Migrates an entire 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
storage_space  path to storage space
old_coll_path  path to old collection
coll_name  collection name
coll_id  collection id in string format

Here is the call graph for this function:

int translate_bstreams_0_0_1 char *  storage_space,
char *  old_coll_path,
TROVE_coll_id  coll_id,
char *  new_name,
TROVE_context_id  trove_context
[static]
 

Migrates bstream files from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
storage_space  path to trove storage space
old_coll_path  path to old collection
coll_id  collection id
new_name  name of collection
trove_context  open trove context

int translate_coll_eattr_0_0_1 char *  old_coll_path,
TROVE_coll_id  coll_id,
char *  coll_name,
TROVE_context_id  trove_context
[static]
 

Migrates collection xattrs from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
old_coll_path  path to old trove collection
coll_id  collection id in string format
coll_name  name of collection
trove_context  open trove context

Here is the call graph for this function:

int translate_dspace_attr_0_0_1 char *  old_coll_path,
TROVE_coll_id  coll_id,
char *  coll_name,
TROVE_context_id  trove_context
[static]
 

Migrates dspace attrs from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
old_coll_path  path to old collection
coll_id  collection id
coll_name  name of collection
trove_context  open trove context

Here is the call graph for this function:

int translate_keyval_db_0_0_1 TROVE_coll_id  coll_id,
char *  full_db_path,
TROVE_handle  handle,
char *  coll_name,
TROVE_context_id  trove_context
[static]
 

Migrates a single keyval db from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
coll_id  collection id
full_db_path  fully resolved path to db file
handle  handle of the object
coll_name  name of collection
trove_context  open trove context

Here is the call graph for this function:

int translate_keyvals_0_0_1 char *  old_coll_path,
TROVE_coll_id  coll_id,
char *  coll_name,
TROVE_context_id  trove_context
[static]
 

Migrates keyvals from a 0.0.1 DBPF collection.

Returns:
0 on succes, -1 on failure
Parameters:
old_coll_path  path to old collection
coll_id  collection id
coll_name  name of collection
trove_context  open trove context

Here is the call graph for this function:


Variable Documentation

int DEF_DATA_SIZE = 8192
 

default size of buffers to use for reading old db values

int DEF_KEY_SIZE = 4096
 

default size of buffers to use for reading old db keys


Generated on Fri Sep 10 02:45:05 2010 for PVFS by doxygen 1.3.5