15 #ifndef CVMFS_LIBCVMFS_H_
16 #define CVMFS_LIBCVMFS_H_
18 #define LIBCVMFS_VERSION 2
19 #define LIBCVMFS_VERSION_MAJOR LIBCVMFS_VERSION
20 #define LIBCVMFS_VERSION_MINOR 13
47 #define LIBCVMFS_REVISION 31
54 #define LIBCVMFS_FAIL_OK 0
55 #define LIBCVMFS_FAIL_NOFILES -1
56 #define LIBCVMFS_FAIL_MKCACHE -2
57 #define LIBCVMFS_FAIL_OPENCACHE -3
58 #define LIBCVMFS_FAIL_LOCKFILE -4
59 #define LIBCVMFS_FAIL_INITCACHE -5
60 #define LIBCVMFS_FAIL_INITQUOTA -6
61 #define LIBCVMFS_FAIL_BADOPT -7
249 const char *legacy_options);
260 const char *key,
const char *value);
334 cvmfs_context **
ctx);
371 int fd,
void *buf,
size_t size, off_t off);
405 int cvmfs_stat(cvmfs_context *
ctx,
const char *path,
struct stat *st);
415 int cvmfs_lstat(cvmfs_context *
ctx,
const char *path,
struct stat *st);
547 #endif // CVMFS_LIBCVMFS_H_
int cvmfs_options_parse(cvmfs_option_map *opts, const char *path)
int cvmfs_list_nc(LibContext *ctx, const char *path, char ***buf, size_t *buflen)
void cvmfs_options_parse_default(cvmfs_option_map *opts, const char *fqrn)
struct cvmcache_context * ctx
void cvmfs_detach_repo(LibContext *ctx)
uint64_t ctr_external_file_size
int cvmfs_listdir_contents(LibContext *ctx, const char *path, char ***buf, size_t *listlen, size_t *buflen)
void cvmfs_attr_free(struct cvmfs_attr *attr)
struct cvmfs_nc_attr * cvmfs_nc_attr_init()
cvmfs_context * cvmfs_attach_repo(char const *options)
cvmfs_errors cvmfs_init_v2(SimpleOptionsParser *opts)
cvmfs_option_map * cvmfs_options_clone(cvmfs_option_map *opts)
int cvmfs_stat_attr(LibContext *ctx, const char *path, struct cvmfs_attr *attr)
cvmfs_option_map * cvmfs_options_init()
int cvmfs_stat_nc(LibContext *ctx, const char *path, struct cvmfs_nc_attr *nc_attr)
void cvmfs_options_set(cvmfs_option_map *opts, const char *key, const char *value)
char * cvmfs_statistics_format(cvmfs_context *ctx)
static void cvmfs_init(void *userdata, struct fuse_conn_info *conn)
uint64_t cvmfs_get_revision(LibContext *ctx)
void cvmfs_list_free(char **buf)
int cvmfs_listdir_stat(LibContext *ctx, const char *path, struct cvmfs_stat_t **buf, size_t *listlen, size_t *buflen)
void cvmfs_enable_threaded(LibContext *ctx)
void cvmfs_options_fini(cvmfs_option_map *opts)
int cvmfs_stat(LibContext *ctx, const char *path, struct stat *st)
cvmfs_errors cvmfs_attach_repo_v2(const char *fqrn, SimpleOptionsParser *opts, LibContext **ctx)
char * cvmfs_options_get(cvmfs_option_map *opts, const char *key)
static void cvmfs_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
uint64_t ctr_chunked_size
int cvmfs_lstat(LibContext *ctx, const char *path, struct stat *st)
int cvm_is_hash_artificial
int cvmfs_listdir(LibContext *ctx, const char *path, char ***buf, size_t *buflen)
char * cvmfs_options_dump(cvmfs_option_map *opts)
cvmfs_option_map * cvmfs_options_init_legacy(const char *legacy_options)
void cvmfs_nc_attr_free(struct cvmfs_nc_attr *nc_attr)
cvmfs_option_map * cvmfs_options_init_v2(int taint_environ)
static void cvmfs_readlink(fuse_req_t req, fuse_ino_t ino)
void cvmfs_options_free(char *value)
void cvmfs_options_unset(cvmfs_option_map *opts, const char *key)
cvmfs_option_map * cvmfs_options_clone_legacy(cvmfs_option_map *opts, const char *legacy_options)
ssize_t cvmfs_pread(LibContext *ctx, int fd, void *buf, size_t size, off_t off)
int cvmfs_close(LibContext *ctx, int fd)
int cvmfs_remount(LibContext *ctx)
struct cvmfs_attr * cvmfs_attr_init()
void cvmfs_set_log_fn(void(*log_fn)(const char *msg))
void cvmfs_adopt_options(cvmfs_context *ctx, SimpleOptionsParser *opts)