src/server/daemon/vfs.c

branch
webdav
changeset 345
5832e10fc59a
parent 289
285d483db2fb
child 366
47bc686fafe4
equal deleted inserted replaced
344:70a9b945206a 345:5832e10fc59a
67 sys_file_pwrite, 67 sys_file_pwrite,
68 sys_file_seek, 68 sys_file_seek,
69 sys_file_close, 69 sys_file_close,
70 //sys_file_aioread, 70 //sys_file_aioread,
71 //sys_file_aiowrite, 71 //sys_file_aiowrite,
72 NULL, 72 NULL, // aioread
73 NULL 73 NULL, // aiowrite
74 NULL // getetag
74 }; 75 };
75 76
76 static VFS_DIRIO sys_dir_io = { 77 static VFS_DIRIO sys_dir_io = {
77 sys_dir_read, 78 sys_dir_read,
78 sys_dir_close 79 sys_dir_close
196 int ret = ctx->vfs->fstat(ctx, fd, buf); 197 int ret = ctx->vfs->fstat(ctx, fd, buf);
197 if(ret && ctx) { 198 if(ret && ctx) {
198 sys_set_error_status(ctx); 199 sys_set_error_status(ctx);
199 } 200 }
200 return ret; 201 return ret;
202 }
203
204 const char * vfs_getetag(SYS_FILE fd) {
205 WS_ASSERT(fd);
206
207 if(fd->io->opt_getetag) {
208 return fd->io->opt_getetag(fd);
209 }
210 return NULL;
201 } 211 }
202 212
203 void vfs_close(SYS_FILE fd) { 213 void vfs_close(SYS_FILE fd) {
204 WS_ASSERT(fd); 214 WS_ASSERT(fd);
205 215

mercurial