src/server/public/vfs.h

branch
aio
changeset 165
6942a8c3e737
parent 66
74babc0082b7
child 172
5580517faafc
equal deleted inserted replaced
159:9ba9f8befa80 165:6942a8c3e737
34 34
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 #define VFS_CHECKS_ACL 0x0001
40
39 typedef struct VFS_IO VFS_IO; 41 typedef struct VFS_IO VFS_IO;
40 typedef struct VFS_DIRIO VFS_DIRIO; 42 typedef struct VFS_DIRIO VFS_DIRIO;
41 typedef struct VFSFile VFSFile; 43 typedef struct VFSFile VFSFile;
42 typedef struct VFSDir VFSDir; 44 typedef struct VFSDir VFSDir;
43 typedef struct VFSEntry VFSEntry; 45 typedef struct VFSEntry VFSEntry;
50 int (*stat)(VFSContext *ctx, char *path, struct stat *buf); 52 int (*stat)(VFSContext *ctx, char *path, struct stat *buf);
51 int (*fstat)(VFSContext *ctx, SYS_FILE fd, struct stat *buf); 53 int (*fstat)(VFSContext *ctx, SYS_FILE fd, struct stat *buf);
52 VFS_DIR (*opendir)(VFSContext *ctx, char *path); 54 VFS_DIR (*opendir)(VFSContext *ctx, char *path);
53 int (*mkdir)(VFSContext *ctx, char *path); 55 int (*mkdir)(VFSContext *ctx, char *path);
54 int (*unlink)(VFSContext *ctx, char *path); 56 int (*unlink)(VFSContext *ctx, char *path);
57 uint32_t flags;
55 }; 58 };
56 59
57 struct VFSContext { 60 struct VFSContext {
58 pool_handle_t *pool; 61 pool_handle_t *pool;
59 Session *sn; 62 Session *sn;

mercurial