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
130int
131dfs_sys_set_prefix(dfs_sys_t *dfs_sys, const char *prefix);
132
145int
146dfs_sys_local2global(dfs_sys_t *dfs_sys, d_iov_t *glob);
147
161int
162dfs_sys_global2local(daos_handle_t poh, daos_handle_t coh, int mflags,
163 int sflags, d_iov_t glob, dfs_sys_t **dfs_sys);
164
174int
175dfs_sys2base(dfs_sys_t *dfs_sys, dfs_t **dfs);
176
190int
191dfs_sys_access(dfs_sys_t *dfs_sys, const char *path, int mask, int flags);
192
203int
204dfs_sys_chmod(dfs_sys_t *dfs_sys, const char *path, mode_t mode);
205
220int
221dfs_sys_chown(dfs_sys_t *dfs_sys, const char *path, uid_t uid, gid_t gid, int flags);
222
238int
239dfs_sys_setattr(dfs_sys_t *dfs_sys, const char *path, struct stat *stbuf,
240 int flags, int sflags);
241
253int
254dfs_sys_utimens(dfs_sys_t *dfs_sys, const char *path,
255 const struct timespec times[2], int flags);
256
277int
278dfs_sys_stat(dfs_sys_t *dfs_sys, const char *path, int flags,
279 struct stat *stbuf);
296int
297dfs_sys_mknod(dfs_sys_t *dfs_sys, const char *path, mode_t mode,
298 daos_oclass_id_t cid, daos_size_t chunk_size);
299
317int
318dfs_sys_listxattr(dfs_sys_t *dfs_sys, const char *path, char *list,
319 daos_size_t *size, int flags);
320
336int
337dfs_sys_getxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
338 void *value, daos_size_t *size, int flags);
339
356int
357dfs_sys_setxattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
358 const void *value, daos_size_t size, int flags, int sflags);
359
371
372int
373dfs_sys_removexattr(dfs_sys_t *dfs_sys, const char *path, const char *name,
374 int flags);
375
391int
392dfs_sys_readlink(dfs_sys_t *dfs_sys, const char *path, char *buf,
393 daos_size_t *size);
394
404int
405dfs_sys_symlink(dfs_sys_t *dfs_sys, const char *target, const char *path);
406
427int
428dfs_sys_open(dfs_sys_t *dfs_sys, const char *path, mode_t mode, int flags,
429 daos_oclass_id_t cid, daos_size_t chunk_size,
430 const char *value, dfs_obj_t **obj);
431
439int
440dfs_sys_close(dfs_obj_t *obj);
441
458int
459dfs_sys_read(dfs_sys_t *dfs_sys, dfs_obj_t *obj, void *buf, daos_off_t off,
460 daos_size_t *size, daos_event_t *ev);
461
476int
477dfs_sys_write(dfs_sys_t *dfs_sys, dfs_obj_t *obj, const void *buf,
478 daos_off_t off, daos_size_t *size, daos_event_t *ev);
479
493int
494dfs_sys_punch(dfs_sys_t *dfs_sys, const char *path,
495 daos_off_t offset, daos_off_t len);
496
510int
511dfs_sys_remove(dfs_sys_t *dfs_sys, const char *path, bool force,
512 daos_obj_id_t *oid);
513
527int
528dfs_sys_remove_type(dfs_sys_t *dfs_sys, const char *path, bool force,
529 mode_t mode, daos_obj_id_t *oid);
530
541int
542dfs_sys_mkdir(dfs_sys_t *dfs_sys, const char *dir, mode_t mode,
543 daos_oclass_id_t cid);
544
555int
556dfs_sys_mkdir_p(dfs_sys_t *dfs_sys, const char *dir_path, mode_t mode, daos_oclass_id_t cid);
557
569int
570dfs_sys_opendir(dfs_sys_t *dfs_sys, const char *dir, int flags, DIR **dirp);
571
579int
580dfs_sys_closedir(DIR *dirp);
581
593int
594dfs_sys_readdir(dfs_sys_t *dfs_sys, DIR *dirp, struct dirent **dirent);
595
596#if defined(__cplusplus)
597}
598#endif
599#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_set_prefix
int dfs_sys_set_prefix(dfs_sys_t *dfs_sys, const char *prefix)
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)
dfs_sys_mkdir_p
int dfs_sys_mkdir_p(dfs_sys_t *dfs_sys, const char *dir_path, mode_t mode, daos_oclass_id_t cid)
daos_handle_t
Definition daos_types.h:76
daos_obj_id_t
Definition daos_types.h:231
dfs_attr_t
Definition daos_fs.h:72