DAOS API: src/include/daos_fs_sys.h Source File

| DAOS API (v2.1 - dev)

Loading...
Searching...
No Matches
daos_fs_sys.h
Go to the documentation of this file.
1
15
16#ifndef __DAOS_FS_SYS_H__
17#define __DAOS_FS_SYS_H__
18
19#if defined(__cplusplus)
20extern "C" {
21#endif
22
23#include <dirent.h>
24
25#include <daos.h>
26#include <daos_fs.h>
27
29#define DFS_SYS_NO_CACHE 1
30#define DFS_SYS_NO_LOCK 2
31
33 typedef struct dfs_sys dfs_sys_t;
34
51int
52dfs_sys_connect(const char *pool, const char *sys, const char *cont, int mflags, int sflags,
53 dfs_attr_t *attr, dfs_sys_t **dfs_sys);
54
63int
64dfs_sys_disconnect(dfs_sys_t *dfs_sys);
65
78int
79dfs_sys_local2global_all(dfs_sys_t *dfs_sys, d_iov_t *glob);
80
92int
93dfs_sys_global2local_all(int mflags, int sflags, d_iov_t glob, dfs_sys_t **dfs_sys);
94
106int
107dfs_sys_mount(daos_handle_t poh, daos_handle_t coh, int mflags, int sflags,
108 dfs_sys_t **dfs_sys);
109
117int
118dfs_sys_umount(dfs_sys_t *dfs_sys);
119
132int
133dfs_sys_local2global(dfs_sys_t *dfs_sys, d_iov_t *glob);
134
148int
149dfs_sys_global2local(daos_handle_t poh, daos_handle_t coh, int mflags,
150 int sflags, d_iov_t glob, dfs_sys_t **dfs_sys);
151
161int
162dfs_sys2base(dfs_sys_t *dfs_sys, dfs_t **dfs);
163
177int
178dfs_sys_access(dfs_sys_t *dfs_sys, const char *path, int mask, int flags);
179
190int
191dfs_sys_chmod(dfs_sys_t *dfs_sys, const char *path, mode_t mode);
192
207int
208dfs_sys_chown(dfs_sys_t *dfs_sys, const char *path, uid_t uid, gid_t gid, int flags);
209
225int
226dfs_sys_setattr(dfs_sys_t *dfs_sys, const char *path, struct stat *stbuf,
227 int flags, int sflags);
228
240int
241dfs_sys_utimens(dfs_sys_t *dfs_sys, const char *path,
242 const struct timespec times[2], int flags);
243
264int
265dfs_sys_stat(dfs_sys_t *dfs_sys, const char *path, int flags,
266 struct stat *stbuf);
283int
284dfs_sys_mknod(dfs_sys_t *dfs_sys, const char *path, mode_t mode,
285 daos_oclass_id_t cid, daos_size_t chunk_size);
286
304int
305dfs_sys_listxattr(dfs_sys_t *dfs_sys, const char *path, char *list,
306 daos_size_t *size, int flags);
307
323int
324dfs_sys_getxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
325 void *value, daos_size_t *size, int flags);
326
343int
344dfs_sys_setxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
345 const void *value, daos_size_t size, int flags, int sflags);
346
358
359int
360dfs_sys_removexattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
361 int flags);
362
378int
379dfs_sys_readlink(dfs_sys_t *dfs_sys, const char *path, char *buf,
380 daos_size_t *size);
381
391int
392dfs_sys_symlink(dfs_sys_t *dfs_sys, const char *target, const char *path);
393
414int
415dfs_sys_open(dfs_sys_t *dfs_sys, const char *path, mode_t mode, int flags,
416 daos_oclass_id_t cid, daos_size_t chunk_size,
417 const char *value, dfs_obj_t **obj);
418
426int
427dfs_sys_close(dfs_obj_t *obj);
428
445int
446dfs_sys_read(dfs_sys_t *dfs_sys, dfs_obj_t *obj, void *buf, daos_off_t off,
447 daos_size_t *size, daos_event_t *ev);
448
463int
464dfs_sys_write(dfs_sys_t *dfs_sys, dfs_obj_t *obj, const void *buf,
465 daos_off_t off, daos_size_t *size, daos_event_t *ev);
466
480int
481dfs_sys_punch(dfs_sys_t *dfs_sys, const char *path,
482 daos_off_t offset, daos_off_t len);
483
497int
498dfs_sys_remove(dfs_sys_t *dfs_sys, const char *path, bool force,
499 daos_obj_id_t *oid);
500
514int
515dfs_sys_remove_type(dfs_sys_t *dfs_sys, const char *path, bool force,
516 mode_t mode, daos_obj_id_t *oid);
517
528int
529dfs_sys_mkdir(dfs_sys_t *dfs_sys, const char *dir, mode_t mode,
530 daos_oclass_id_t cid);
531
543int
544dfs_sys_opendir(dfs_sys_t *dfs_sys, const char *dir, int flags, DIR **dirp);
545
553int
554dfs_sys_closedir(DIR *dirp);
555
567int
568dfs_sys_readdir(dfs_sys_t *dfs_sys, DIR *dirp, struct dirent **dirent);
569
570#if defined(__cplusplus)
571}
572#endif
573#endif /* __DAOS_FS_SYS_H__ */
daos.h
daos_fs.h
dfs_obj_t
struct dfs_obj dfs_obj_t
Definition daos_fs.h:50
dfs_t
struct dfs dfs_t
Definition daos_fs.h:52
dfs_sys_stat
int dfs_sys_stat(dfs_sys_t *dfs_sys, const char *path, int flags, struct stat *stbuf)
dfs_sys_readdir
int dfs_sys_readdir(dfs_sys_t *dfs_sys, DIR *dirp, struct dirent **dirent)
dfs_sys_read
int dfs_sys_read(dfs_sys_t *dfs_sys, dfs_obj_t *obj, void *buf, daos_off_t off, daos_size_t *size, daos_event_t *ev)
dfs_sys_punch
int dfs_sys_punch(dfs_sys_t *dfs_sys, const char *path, daos_off_t offset, daos_off_t len)
dfs_sys_write
int dfs_sys_write(dfs_sys_t *dfs_sys, dfs_obj_t *obj, const void *buf, daos_off_t off, daos_size_t *size, daos_event_t *ev)
dfs_sys_getxattr
int dfs_sys_getxattr(dfs_sys_t *dfs_sys, const char *path, const char *name, void *value, daos_size_t *size, int flags)
dfs_sys_open
int dfs_sys_open(dfs_sys_t *dfs_sys, const char *path, mode_t mode, int flags, daos_oclass_id_t cid, daos_size_t chunk_size, const char *value, dfs_obj_t **obj)
dfs_sys_local2global_all
int dfs_sys_local2global_all(dfs_sys_t *dfs_sys, d_iov_t *glob)
dfs_sys_chmod
int dfs_sys_chmod(dfs_sys_t *dfs_sys, const char *path, mode_t mode)
dfs_sys_remove_type
int dfs_sys_remove_type(dfs_sys_t *dfs_sys, const char *path, bool force, mode_t mode, daos_obj_id_t *oid)
dfs_sys_mkdir
int dfs_sys_mkdir(dfs_sys_t *dfs_sys, const char *dir, mode_t mode, daos_oclass_id_t cid)
dfs_sys_close
int dfs_sys_close(dfs_obj_t *obj)
dfs_sys_mknod
int dfs_sys_mknod(dfs_sys_t *dfs_sys, const char *path, mode_t mode, daos_oclass_id_t cid, daos_size_t chunk_size)
dfs_sys_readlink
int dfs_sys_readlink(dfs_sys_t *dfs_sys, const char *path, char *buf, daos_size_t *size)
dfs_sys2base
int dfs_sys2base(dfs_sys_t *dfs_sys, dfs_t **dfs)
dfs_sys_opendir
int dfs_sys_opendir(dfs_sys_t *dfs_sys, const char *dir, int flags, DIR **dirp)
dfs_sys_global2local
int dfs_sys_global2local(daos_handle_t poh, daos_handle_t coh, int mflags, int sflags, d_iov_t glob, dfs_sys_t **dfs_sys)
dfs_sys_t
struct dfs_sys dfs_sys_t
Definition daos_fs_sys.h:33
dfs_sys_chown
int dfs_sys_chown(dfs_sys_t *dfs_sys, const char *path, uid_t uid, gid_t gid, int flags)
dfs_sys_access
int dfs_sys_access(dfs_sys_t *dfs_sys, const char *path, int mask, int flags)
dfs_sys_connect
int dfs_sys_connect(const char *pool, const char *sys, const char *cont, int mflags, int sflags, dfs_attr_t *attr, dfs_sys_t **dfs_sys)
dfs_sys_disconnect
int dfs_sys_disconnect(dfs_sys_t *dfs_sys)
dfs_sys_umount
int dfs_sys_umount(dfs_sys_t *dfs_sys)
dfs_sys_symlink
int dfs_sys_symlink(dfs_sys_t *dfs_sys, const char *target, const char *path)
dfs_sys_closedir
int dfs_sys_closedir(DIR *dirp)
dfs_sys_mount
int dfs_sys_mount(daos_handle_t poh, daos_handle_t coh, int mflags, int sflags, dfs_sys_t **dfs_sys)
dfs_sys_removexattr
int dfs_sys_removexattr(dfs_sys_t *dfs_sys, const char *path, const char *name, int flags)
dfs_sys_setxattr
int dfs_sys_setxattr(dfs_sys_t *dfs_sys, const char *path, const char *name, const void *value, daos_size_t size, int flags, int sflags)
dfs_sys_local2global
int dfs_sys_local2global(dfs_sys_t *dfs_sys, d_iov_t *glob)
dfs_sys_utimens
int dfs_sys_utimens(dfs_sys_t *dfs_sys, const char *path, const struct timespec times[2], int flags)
dfs_sys_remove
int dfs_sys_remove(dfs_sys_t *dfs_sys, const char *path, bool force, daos_obj_id_t *oid)
dfs_sys_setattr
int dfs_sys_setattr(dfs_sys_t *dfs_sys, const char *path, struct stat *stbuf, int flags, int sflags)
dfs_sys_listxattr
int dfs_sys_listxattr(dfs_sys_t *dfs_sys, const char *path, char *list, daos_size_t *size, int flags)
dfs_sys_global2local_all
int dfs_sys_global2local_all(int mflags, int sflags, d_iov_t glob, dfs_sys_t **dfs_sys)
daos_handle_t
Definition daos_types.h:75
daos_obj_id_t
Definition daos_types.h:230
dfs_attr_t
Definition daos_fs.h:72