Lines Matching defs:fuse_fs

91 fuse_uvfs_setup_context(ucred_t *cr, struct fuse_fs *fuse)
129 struct fuse_fs *fuse_fs)
156 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf))
162 if (FUSE_OP_OPENDIR(fuse_fs, path, ffi))
165 if (FUSE_OP_OPEN(fuse_fs, path, ffi))
179 (void) FUSE_OP_RELEASEDIR(fuse_fs, path, ffi);
181 (void) FUSE_OP_RELEASE(fuse_fs, path, ffi);
255 static struct fuse_fs *
256 fuse_uvfs_fs_init(libuvfs_fs_t *fs, struct fuse_fs *fuse_fs)
258 struct fuse_fs *info;
262 struct fuse_fs *winner;
265 fuse_fs);
279 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
282 fuse_uvfs_setup_context(cr, fuse_fs);
284 assert(fuse_fs != NULL);
290 if (FUSE_OP_GETATTR(fuse_fs, "/", &statbuf) != 0) {
306 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
312 fuse_uvfs_setup_context(cr, fuse_fs);
319 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
335 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
340 fuse_uvfs_setup_context(cr, fuse_fs);
342 if ((error = FUSE_OP_STATFS(fuse_fs, "/", &buf)) == 0) {
358 fuse_uvfs_remove_hidden(libuvfs_fs_t *fs, struct fuse_fs *fuse_fs,
374 error = FUSE_OP_RMDIR(fuse_fs, path);
376 error = FUSE_OP_UNLINK(fuse_fs, path);
390 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
416 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf)) {
439 fuse_uvfs_remove_hidden(fs, fuse_fs, fid, &statbuf);
441 error = FUSE_OP_RELEASEDIR(fuse_fs, path, ffi);
443 error = FUSE_OP_RELEASE(fuse_fs, path, ffi);
458 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
464 fuse_uvfs_setup_context(cr, fuse_fs);
478 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
488 fuse_uvfs_setup_context(cr, fuse_fs);
497 if (FUSE_OP_GETATTR(fuse_fs, path, &buf)) {
523 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
528 fuse_uvfs_setup_context(cr, fuse_fs);
533 fuse_uvfs_file_info_get(fs, fid, fuse_fs) ? 0 : ESTALE);
539 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
544 fuse_uvfs_setup_context(cr, fuse_fs);
549 fuse_uvfs_file_info_get(fs, fid, fuse_fs) ? 0 : ESTALE);
555 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
561 fuse_uvfs_setup_context(cr, fuse_fs);
648 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
659 fuse_uvfs_setup_context(cr, fuse_fs);
705 ffi = fuse_uvfs_file_info_get(fs, fid, fuse_fs);
711 if ((error = FUSE_OP_READDIR(fuse_fs, dirhp->dh_path,
801 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
812 fuse_uvfs_setup_context(cr, fuse_fs);
823 if ((error = FUSE_OP_GETATTR(fuse_fs, path, &statbuf)) == 0) {
834 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
845 fuse_uvfs_setup_context(cr, fuse_fs);
853 if ((error = FUSE_OP_SYMLINK(fuse_fs, args->lcsl_link, path)) != 0)
865 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
879 fuse_uvfs_setup_context(cr, fuse_fs);
887 if ((error = FUSE_OP_READLINK(fuse_fs, path, link, MAXPATHLEN)) != 0) {
904 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
914 fuse_uvfs_setup_context(cr, fuse_fs);
932 if ((error = FUSE_OP_LINK(fuse_fs, spath, tpath)) != 0)
945 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
977 error = FUSE_OP_GETATTR(fuse_fs, path, &statbuf);
988 error = FUSE_OP_RENAME(fuse_fs, oldpath, path);
1018 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1029 fuse_uvfs_setup_context(cr, fuse_fs);
1062 error = FUSE_OP_RMDIR(fuse_fs, path);
1076 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1087 fuse_uvfs_setup_context(cr, fuse_fs);
1121 if ((error = FUSE_OP_UNLINK(fuse_fs, path)) != 0) {
1136 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1151 fuse_uvfs_setup_context(cr, fuse_fs);
1204 if ((error = FUSE_OP_RENAME(fuse_fs, spath, tpath)) != 0)
1218 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1228 fuse_uvfs_setup_context(cr, fuse_fs);
1240 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1246 if ((error = FUSE_OP_CHMOD(fuse_fs, path, mode)) != 0)
1252 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1261 if ((error = FUSE_OP_CHOWN(fuse_fs, path, uid, gid)) != 0)
1266 if ((error = FUSE_OP_TRUNCATE(fuse_fs, path,
1282 FUSE_OP_UTIMENS(fuse_fs, path, tv, error);
1287 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1302 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1320 fuse_uvfs_setup_context(cr, fuse_fs);
1332 ffi = fuse_uvfs_file_info_get(fs, fid, fuse_fs);
1341 FUSE_OP_READ(fuse_fs, path, (char *)buffy, arg->lcra_len,
1352 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1368 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1380 fuse_uvfs_setup_context(cr, fuse_fs);
1388 ffi = fuse_uvfs_file_info_get(fs, fid, fuse_fs);
1397 FUSE_OP_WRITE(fuse_fs, path, (void *)data, arg->lcwa_length,
1406 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1421 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1432 fuse_uvfs_setup_context(cr, fuse_fs);
1452 if ((error = FUSE_OP_MKNOD(fuse_fs, path,
1466 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1481 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1493 fuse_uvfs_setup_context(cr, fuse_fs);
1509 if ((error = FUSE_OP_MKDIR(fuse_fs, path,
1523 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1537 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1546 fuse_uvfs_setup_context(cr, fuse_fs);
1557 error = FUSE_OP_TRUNCATE(fuse_fs, path, (off_t)arg->lcfs_offset);
1566 struct fuse_fs *fuse_fs = FUSE_UVFS_FS(fs);
1578 fuse_uvfs_setup_context(cr, fuse_fs);
1586 if (FUSE_OP_GETATTR(fuse_fs, path, &statbuf) != 0) {
1591 ffi = fuse_uvfs_file_info_get(fs, fid, fuse_fs);
1598 error = FUSE_OP_FSYNCDIR(fuse_fs, path,
1601 error = FUSE_OP_FSYNC(fuse_fs, path, arg->lcfs_syncflag, ffi);
1646 fuse_fs_init(struct fuse_fs *fs, struct fuse_conn_info *conn)
1653 fuse_fs_destroy(struct fuse_fs *fs)
1657 umem_free(fs, sizeof (struct fuse_fs));
1671 struct fuse_fs *fs;
1700 fs = (struct fuse_fs *)umem_zalloc(sizeof (struct fuse_fs),
1705 gettext("fuse: failed to allocate fuse_fs\n"));
1733 * Store fuse_fs and other stuff
1741 fuse->fuse_fs = fs;
1743 fuse->fuse_fs->fuse = fuse;
1807 fuse_fs_destroy(f->fuse_fs);