DAOS API (v2.0)
Loading...
Searching...
No Matches
daos_fs_sys.h
Go to the documentation of this file.
1
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
33typedef struct dfs_sys dfs_sys_t;
34
46int
47dfs_sys_mount(daos_handle_t poh, daos_handle_t coh, int mflags, int sflags,
48 dfs_sys_t **dfs_sys);
49
57int
59
72int
73dfs_sys_local2global(dfs_sys_t *dfs_sys, d_iov_t *glob);
74
88int
90 int sflags, d_iov_t glob, dfs_sys_t **dfs_sys);
91
101int
102dfs_sys2base(dfs_sys_t *dfs_sys, dfs_t **dfs);
103
117int
118dfs_sys_access(dfs_sys_t *dfs_sys, const char *path, int mask, int flags);
119
130int
131dfs_sys_chmod(dfs_sys_t *dfs_sys, const char *path, mode_t mode);
132
148int
149dfs_sys_setattr(dfs_sys_t *dfs_sys, const char *path, struct stat *stbuf,
150 int flags, int sflags);
151
164int
165dfs_sys_utimens(dfs_sys_t *dfs_sys, const char *path,
166 const struct timespec times[2], int flags);
167
188int
189dfs_sys_stat(dfs_sys_t *dfs_sys, const char *path, int flags,
190 struct stat *stbuf);
207int
208dfs_sys_mknod(dfs_sys_t *dfs_sys, const char *path, mode_t mode,
209 daos_oclass_id_t cid, daos_size_t chunk_size);
210
228int
229dfs_sys_listxattr(dfs_sys_t *dfs_sys, const char *path, char *list,
230 daos_size_t *size, int flags);
231
247int
248dfs_sys_getxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
249 void *value, daos_size_t *size, int flags);
250
267int
268dfs_sys_setxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
269 const void *value, daos_size_t size, int flags, int sflags);
270
283int
284dfs_sys_removexattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
285 int flags);
286
302int
303dfs_sys_readlink(dfs_sys_t *dfs_sys, const char *path, char *buf,
304 daos_size_t *size);
305
315int
316dfs_sys_symlink(dfs_sys_t *dfs_sys, const char *target, const char *path);
317
338int
339dfs_sys_open(dfs_sys_t *dfs_sys, const char *path, mode_t mode, int flags,
340 daos_oclass_id_t cid, daos_size_t chunk_size,
341 const char *value, dfs_obj_t **obj);
342
350int
352
369int
370dfs_sys_read(dfs_sys_t *dfs_sys, dfs_obj_t *obj, void *buf, daos_off_t off,
371 daos_size_t *size, daos_event_t *ev);
372
387int
388dfs_sys_write(dfs_sys_t *dfs_sys, dfs_obj_t *obj, const void *buf,
389 daos_off_t off, daos_size_t *size, daos_event_t *ev);
390
404int
405dfs_sys_punch(dfs_sys_t *dfs_sys, const char *path,
406 daos_off_t offset, daos_off_t len);
407
421int
422dfs_sys_remove(dfs_sys_t *dfs_sys, const char *path, bool force,
423 daos_obj_id_t *oid);
424
438int
439dfs_sys_remove_type(dfs_sys_t *dfs_sys, const char *path, bool force,
440 mode_t mode, daos_obj_id_t *oid);
441
452int
453dfs_sys_mkdir(dfs_sys_t *dfs_sys, const char *dir, mode_t mode,
454 daos_oclass_id_t cid);
455
467int
468dfs_sys_opendir(dfs_sys_t *dfs_sys, const char *dir, int flags, DIR **dirp);
469
477int
479
491int
492dfs_sys_readdir(dfs_sys_t *dfs_sys, DIR *dirp, struct dirent **dirent);
493
494#if defined(__cplusplus)
495}
496#endif
497#endif /* __DAOS_FS_SYS_H__ */
struct dfs_obj dfs_obj_t
Definition daos_fs.h:39
struct dfs dfs_t
Definition daos_fs.h:41
int dfs_sys_stat(dfs_sys_t *dfs_sys, const char *path, int flags, struct stat *stbuf)
int dfs_sys_readdir(dfs_sys_t *dfs_sys, DIR *dirp, struct dirent **dirent)
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)
int dfs_sys_punch(dfs_sys_t *dfs_sys, const char *path, daos_off_t offset, daos_off_t len)
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)
int dfs_sys_getxattr(dfs_sys_t *dfs_sys, const char *path, const char *name, void *value, daos_size_t *size, int flags)
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)
int dfs_sys_chmod(dfs_sys_t *dfs_sys, const char *path, mode_t mode)
int dfs_sys_remove_type(dfs_sys_t *dfs_sys, const char *path, bool force, mode_t mode, daos_obj_id_t *oid)
int dfs_sys_mkdir(dfs_sys_t *dfs_sys, const char *dir, mode_t mode, daos_oclass_id_t cid)
int dfs_sys_close(dfs_obj_t *obj)
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)
int dfs_sys_readlink(dfs_sys_t *dfs_sys, const char *path, char *buf, daos_size_t *size)
int dfs_sys2base(dfs_sys_t *dfs_sys, dfs_t **dfs)
int dfs_sys_opendir(dfs_sys_t *dfs_sys, const char *dir, int flags, DIR **dirp)
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)
struct dfs_sys dfs_sys_t
Definition daos_fs_sys.h:33
int dfs_sys_access(dfs_sys_t *dfs_sys, const char *path, int mask, int flags)
int dfs_sys_umount(dfs_sys_t *dfs_sys)
int dfs_sys_symlink(dfs_sys_t *dfs_sys, const char *target, const char *path)
int dfs_sys_closedir(DIR *dirp)
int dfs_sys_mount(daos_handle_t poh, daos_handle_t coh, int mflags, int sflags, dfs_sys_t **dfs_sys)
int dfs_sys_removexattr(dfs_sys_t *dfs_sys, const char *path, const char *name, int flags)
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)
int dfs_sys_local2global(dfs_sys_t *dfs_sys, d_iov_t *glob)
int dfs_sys_utimens(dfs_sys_t *dfs_sys, const char *path, const struct timespec times[2], int flags)
int dfs_sys_remove(dfs_sys_t *dfs_sys, const char *path, bool force, daos_obj_id_t *oid)
int dfs_sys_setattr(dfs_sys_t *dfs_sys, const char *path, struct stat *stbuf, int flags, int sflags)
int dfs_sys_listxattr(dfs_sys_t *dfs_sys, const char *path, char *list, daos_size_t *size, int flags)