Lines Matching refs:fs

16 fuse_fs_getattr(struct fuse_fs* fs, const char* path, struct stat* buf)
18 if (fs->ops.getattr == NULL)
20 return fs->ops.getattr(path, buf);
25 fuse_fs_fgetattr(struct fuse_fs* fs, const char* path, struct stat* buf,
28 if (fs->ops.fgetattr == NULL)
30 return fs->ops.fgetattr(path, buf, fi);
35 fuse_fs_rename(struct fuse_fs* fs, const char* oldpath, const char* newpath)
37 if (fs->ops.rename == NULL)
39 return fs->ops.rename(oldpath, newpath);
44 fuse_fs_unlink(struct fuse_fs* fs, const char* path)
46 if (fs->ops.unlink == NULL)
48 return fs->ops.unlink(path);
53 fuse_fs_rmdir(struct fuse_fs* fs, const char* path)
55 if (fs->ops.rmdir == NULL)
57 return fs->ops.rmdir(path);
62 fuse_fs_symlink(struct fuse_fs* fs, const char* linkname, const char* path)
64 if (fs->ops.symlink == NULL)
66 return fs->ops.symlink(linkname, path);
71 fuse_fs_link(struct fuse_fs* fs, const char* oldpath, const char* newpath)
73 if (fs->ops.link == NULL)
75 return fs->ops.link(oldpath, newpath);
80 fuse_fs_release(struct fuse_fs* fs, const char* path,
83 if (fs->ops.release == NULL)
85 return fs->ops.release(path, fi);
90 fuse_fs_open(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi)
92 if (fs->ops.open == NULL)
94 return fs->ops.open(path, fi);
99 fuse_fs_read(struct fuse_fs* fs, const char* path, char *buf, size_t size,
102 if (fs->ops.read == NULL)
104 return fs->ops.read(path, buf, size, off, fi);
109 fuse_fs_write(struct fuse_fs* fs, const char* path, const char* buf,
112 if (fs->ops.write == NULL)
114 return fs->ops.write(path, buf, size, off, fi);
119 fuse_fs_fsync(struct fuse_fs* fs, const char* path, int datasync,
122 if (fs->ops.fsync == NULL)
124 return fs->ops.fsync(path, datasync, fi);
129 fuse_fs_flush(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi)
131 if (fs->ops.flush == NULL)
133 return fs->ops.flush(path, fi);
138 fuse_fs_statfs(struct fuse_fs* fs, const char* path, struct statvfs* buf)
140 if (fs->ops.statfs == NULL)
142 return fs->ops.statfs(path, buf);
147 fuse_fs_opendir(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi)
149 if (fs->ops.opendir == NULL)
151 return fs->ops.opendir(path, fi);
156 fuse_fs_readdir(struct fuse_fs* fs, const char* path, void* buf,
159 if (fs->ops.readdir == NULL)
161 return fs->ops.readdir(path, buf, filler, off, fi);
166 fuse_fs_fsyncdir(struct fuse_fs* fs, const char* path, int datasync,
169 if (fs->ops.fsyncdir == NULL)
171 return fs->ops.fsyncdir(path, datasync, fi);
176 fuse_fs_releasedir(struct fuse_fs* fs, const char* path,
179 if (fs->ops.releasedir == NULL)
181 return fs->ops.releasedir(path, fi);
186 fuse_fs_create(struct fuse_fs* fs, const char* path, mode_t mode,
189 if (fs->ops.create == NULL)
191 return fs->ops.create(path, mode, fi);
196 fuse_fs_lock(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi,
199 if (fs->ops.lock == NULL)
201 return fs->ops.lock(path, fi, cmd, lock);
206 fuse_fs_chmod(struct fuse_fs* fs, const char* path, mode_t mode)
208 if (fs->ops.chmod == NULL)
210 return fs->ops.chmod(path, mode);
215 fuse_fs_chown(struct fuse_fs* fs, const char* path, uid_t uid, gid_t gid)
217 if (fs->ops.chown == NULL)
219 return fs->ops.chown(path, uid, gid);
224 fuse_fs_truncate(struct fuse_fs* fs, const char* path, off_t size)
226 if (fs->ops.truncate == NULL)
228 return fs->ops.truncate(path, size);
233 fuse_fs_ftruncate(struct fuse_fs* fs, const char* path, off_t size,
236 if (fs->ops.ftruncate == NULL)
238 return fs->ops.ftruncate(path, size, fi);
243 fuse_fs_utimens(struct fuse_fs* fs, const char* path,
246 if (fs->ops.utimens != NULL)
247 return fs->ops.utimens(path, tv);
249 if (fs->ops.utime != NULL) {
254 return fs->ops.utime(path, &timeBuffer);
262 fuse_fs_access(struct fuse_fs* fs, const char* path, int mask)
264 if (fs->ops.access == NULL)
266 return fs->ops.access(path, mask);
271 fuse_fs_readlink(struct fuse_fs* fs, const char* path, char* buf, size_t len)
273 if (fs->ops.readlink == NULL)
275 return fs->ops.readlink(path, buf, len);
280 fuse_fs_mknod(struct fuse_fs* fs, const char* path, mode_t mode, dev_t rdev)
282 if (fs->ops.mknod == NULL)
284 return fs->ops.mknod(path, mode, rdev);
289 fuse_fs_mkdir(struct fuse_fs* fs, const char* path, mode_t mode)
291 if (fs->ops.mkdir == NULL)
293 return fs->ops.mkdir(path, mode);
298 fuse_fs_setxattr(struct fuse_fs* fs, const char* path, const char* name,
301 if (fs->ops.setxattr == NULL)
303 return fs->ops.setxattr(path, name, value, size, flags);
308 fuse_fs_getxattr(struct fuse_fs* fs, const char* path, const char* name,
311 if (fs->ops.getxattr == NULL)
313 return fs->ops.getxattr(path, name, value, size);
318 fuse_fs_listxattr(struct fuse_fs* fs, const char* path, char* list, size_t size)
320 if (fs->ops.listxattr == NULL)
322 return fs->ops.listxattr(path, list, size);
327 fuse_fs_removexattr(struct fuse_fs* fs, const char* path, const char* name)
329 if (fs->ops.removexattr == NULL)
331 return fs->ops.removexattr(path, name);
336 fuse_fs_bmap(struct fuse_fs* fs, const char* path, size_t blocksize,
339 if (fs->ops.bmap == NULL)
341 return fs->ops.bmap(path, blocksize, idx);
345 int fuse_fs_ioctl(struct fuse_fs *fs, const char *path, int cmd, void *arg,
348 if (fs->ops.ioctl == NULL)
351 return fs->ops.ioctl(path, cmd, arg, fi, flags, data);
356 fuse_fs_init(struct fuse_fs* fs, struct fuse_conn_info* conn)
358 if (fs->ops.init == NULL)
360 fs->ops.init(conn);
365 fuse_fs_destroy(struct fuse_fs* fs)
367 if (fs->ops.destroy != NULL)
368 fs->ops.destroy(fs->userData);
370 delete fs;
382 fuse_fs* fs = new(std::nothrow) fuse_fs;
383 if (fs == NULL)
386 memset(&fs->ops, 0, sizeof(fuse_operations));
387 memcpy(&fs->ops, ops, opSize);
389 fs->userData = userData;
391 return fs;