Lines Matching refs:mnt

128 sfprov_mount(sfp_connection_t *conn, char *path, sfp_mount_t **mnt)
141 *mnt = NULL;
144 *mnt = m;
152 sfprov_unmount(sfp_mount_t *mnt)
156 rc = vboxCallUnmapFolder(&vbox_client, &mnt->map);
163 kmem_free(mnt, sizeof (*mnt));
171 sfprov_get_fsinfo(sfp_mount_t *mnt, sffs_fsinfo_t *fsinfo)
177 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0,
237 sfprov_mode_from_fmode(sfp_mount_t *mnt, mode_t *mode, RTFMODE fMode)
261 m = mnt->sf_dmode != ~0U ? (mnt->sf_dmode & PERMMASK) : m;
262 m &= ~mnt->sf_dmask;
267 m = mnt->sf_fmode != ~0U ? (mnt->sf_fmode & PERMMASK) : m;
268 m &= ~mnt->sf_fmask;
296 sfprov_stat_from_info(sfp_mount_t *mnt, sffs_stat_t *stat, SHFLFSOBJINFO *info)
298 sfprov_mode_from_fmode(mnt, &stat->sf_mode, info->Attr.fMode);
319 sfp_mount_t *mnt,
338 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
354 newfp->map = mnt->map;
356 sfprov_stat_from_info(mnt, stat, &parms.Info);
361 sfprov_diropen(sfp_mount_t *mnt, char *path, sfp_file_t **fp)
381 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
399 newfp->map = mnt->map;
405 sfprov_open(sfp_mount_t *mnt, char *path, sfp_file_t **fp, int flag)
441 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
459 newfp->map = mnt->map;
511 sfprov_getinfo(sfp_mount_t *mnt, char *path, PSHFLFSOBJINFO info)
522 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
537 sfprov_get_mode(sfp_mount_t *mnt, char *path, mode_t *mode)
542 rc = sfprov_getinfo(mnt, path, &info);
545 sfprov_mode_from_fmode(mnt, mode, info.Attr.fMode);
550 sfprov_get_size(sfp_mount_t *mnt, char *path, uint64_t *size)
555 rc = sfprov_getinfo(mnt, path, &info);
564 sfprov_get_atime(sfp_mount_t *mnt, char *path, timestruc_t *time)
569 rc = sfprov_getinfo(mnt, path, &info);
577 sfprov_get_mtime(sfp_mount_t *mnt, char *path, timestruc_t *time)
582 rc = sfprov_getinfo(mnt, path, &info);
590 sfprov_get_ctime(sfp_mount_t *mnt, char *path, timestruc_t *time)
595 rc = sfprov_getinfo(mnt, path, &info);
603 sfprov_get_attr(sfp_mount_t *mnt, char *path, sffs_stat_t *attr)
608 rc = sfprov_getinfo(mnt, path, &info);
611 sfprov_stat_from_info(mnt, attr, &info);
624 sfp_mount_t *mnt,
646 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
670 rc = vboxCallFSInfo(&vbox_client, &mnt->map, parms.Handle,
685 rc = vboxCallClose(&vbox_client, &mnt->map, parms.Handle);
696 sfprov_set_size(sfp_mount_t *mnt, char *path, uint64_t size)
712 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
728 rc = vboxCallFSInfo(&vbox_client, &mnt->map, parms.Handle,
740 rc = vboxCallClose(&vbox_client, &mnt->map, parms.Handle);
755 sfp_mount_t *mnt,
773 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
785 newfp->map = mnt->map;
787 sfprov_stat_from_info(mnt, stat, &parms.Info);
804 sfprov_remove(sfp_mount_t *mnt, char *path, uint_t is_link)
811 rc = vboxCallRemove(&vbox_client, &mnt->map, str,
821 sfp_mount_t *mnt,
832 rc = vboxReadLink(&vbox_client, &mnt->map, str, (uint32_t) tgt_size,
843 sfp_mount_t *mnt,
856 rc = vboxCallSymlink(&vbox_client, &mnt->map, lnk, tgt, &info);
863 sfprov_stat_from_info(mnt, stat, &info);
873 sfprov_rmdir(sfp_mount_t *mnt, char *path)
880 rc = vboxCallRemove(&vbox_client, &mnt->map, str, SHFL_REMOVE_DIR);
888 sfprov_rename(sfp_mount_t *mnt, char *from, char *to, uint_t is_dir)
896 rc = vboxCallRename(&vbox_client, &mnt->map, old, new,
920 sfp_mount_t *mnt,
944 error = sfprov_diropen(mnt, path, &fp);
1032 sfprov_stat_from_info(mnt, &dirent->sf_stat, &info->Info);