00001
00004 #ifndef __DRMS_STORRAGEUNIT_H
00005 #define __DRMS_STORRAGEUNIT_H
00006
00007 #ifdef DRMS_DEFAULT_RETENTION
00008 #define STDRETENTION DRMS_DEFAULT_RETENTION
00009 #else
00010 #define STDRETENTION (-3)
00011 #endif
00012
00013
00014 int drms_su_allocsu(DRMS_Env_t *env,
00015 uint64_t size,
00016 long long sunum,
00017 char **sudir,
00018 int *tapegroup,
00019 int *status);
00020 int drms_su_commitsu(DRMS_Env_t *env,
00021 const char *seriesname,
00022 long long sunum,
00023 const char *sudir);
00024 int drms_su_isremotesu(long long sunum);
00025 int drms_su_getexportURL(DRMS_Env_t *env, long long sunum, char *url, int size);
00026 int drms_su_getexportserver(DRMS_Env_t *env,
00027 long long sunum,
00028 char *expserver,
00029 int size);
00030 int drms_su_setretention(DRMS_Env_t *env, int16_t newRetention, int nsus, long long *sunums);
00031
00032 #endif