• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/nfs/

Lines Matching defs:ctx

357 nfs3_update_statfs(struct nfsmount *nmp, vfs_context_t ctx)
379 error = nfs_request2(np, NULL, &nmreq, NFSPROC_FSSTAT, vfs_context_thread(ctx),
380 vfs_context_ucred(ctx), NULL, R_SOFT, &nmrep, &xid, &status);
433 nfs4_update_statfs(struct nfsmount *nmp, vfs_context_t ctx)
471 vfs_context_thread(ctx), vfs_context_ucred(ctx),
507 nfs_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t ctx)
550 error = nmp->nm_funcs->nf_update_statfs(nmp, ctx);
775 nfs3_fsinfo(struct nfsmount *nmp, nfsnode_t np, vfs_context_t ctx)
789 error = nfs_request(np, NULL, &nmreq, NFSPROC_FSINFO, ctx, NULL, &nmrep, &xid, &status);
888 vfs_context_t ctx;
960 ctx = vfs_context_kernel();
977 if ((error = nfs_mount_diskless(&nd.nd_root, "/", flags, &vp, &mp, ctx)))
979 if ((error = nfs_mount_diskless(&nd.nd_root, "/", MNT_ROOTFS, &vp, &mp, ctx)))
1011 0, &vppriv, &mppriv, ctx);
1032 error = nfs_getattr(VTONFS(vp), NULL, ctx, NGA_UNCACHED);
1048 vfs_context_t ctx)
1174 if ((error = mountnfs(xdrbuf, mp, ctx, vpp))) {
1205 vfs_context_t ctx)
1248 CAST_USER_ADDR_T(mntname), ctx);
1260 if ((error = VNOP_FSYNC(vp, MNT_WAIT, ctx)) ||
1327 mac_mount_label_associate(ctx, mp);
1435 if ((error = mountnfs(xdrbuf, mp, ctx, &vp))) {
1462 nfs_convert_old_nfs_args(mount_t mp, user_addr_t data, vfs_context_t ctx, int argsversion, int inkernel, char **xdrbufp)
1486 args64bit = (inkernel || vfs_context_is64bit(ctx));
1825 nfs_vfs_mount(mount_t mp, vnode_t vp, user_addr_t data, vfs_context_t ctx)
1847 error = nfs_convert_old_nfs_args(mp, data, ctx, argsversion, inkernel, &xdrbuf);
1883 error = mountnfs(xdrbuf, mp, ctx, &vp);
1895 vfs_context_t ctx,
1912 ctx, &nvattr, &xid);
1931 error = nfs3_fsinfo(nmp, *npp, ctx);
1939 if (!nfs3_pathconf_rpc(*npp, &nfsa, ctx)) {
1963 nfs4_mount_update_path_with_symlink(struct nfsmount *nmp, struct nfs_fs_path *nfsp, uint32_t curcomp, fhandle_t *dirfhp, int *depthp, fhandle_t *fhp, vfs_context_t ctx)
2000 vfs_context_thread(ctx), vfs_context_ucred(ctx), &si, 0, NULL, &req);
2107 vfs_context_t ctx,
2196 vfs_context_thread(ctx), vfs_context_ucred(ctx), &si, 0, NULL, &req);
2273 vfs_context_thread(ctx), vfs_context_ucred(ctx), &si, 0, NULL, &req);
2295 error = nfs4_get_fs_locations(nmp, NULL, dirfh.fh_data, dirfh.fh_len, fspath.np_components[comp], ctx, &nfsls);
2364 error = nfs4_mount_update_path_with_symlink(nmp, &fspath, comp, &dirfh, &depth, &fh, ctx);
2383 error = nfs4_secinfo_rpc(nmp, &si, vfs_context_ucred(ctx), sec.flavors, &sec.count);
2427 vfs_context_thread(ctx), vfs_context_ucred(ctx), &si, 0, NULL, &req);
2641 vfs_context_t ctx,
3135 nmp->nm_mcred = vfs_context_ucred(ctx);
3215 error = nmp->nm_funcs->nf_mount(nmp, ctx, &np);
3237 if ((error = nmp->nm_funcs->nf_update_statfs(nmp, ctx))) {
3307 nfs_mirror_mount_domount(vnode_t dvp, vnode_t vp, vfs_context_t ctx)
3395 error = nfs4_get_fs_locations(nmp, dnp, NULL, 0, vname, ctx, &nfsls);
3648 mntflags, KERNEL_MOUNT_PERMIT_UNMOUNT | KERNEL_MOUNT_NOAUTH, ctx);
3678 vfs_context_t ctx)
3744 if ((error = nfs_node_set_busy(np, vfs_context_thread(ctx)))) {
3757 error = nfs_mirror_mount_domount(pvp, vp, ctx);
3779 vfs_context_t ctx)
3786 if ((error = nfs_node_set_busy(np, vfs_context_thread(ctx)))) {
3798 error = vfs_unmountbyfsid(&(vfs_statfs(mp)->f_fsid), flags, ctx);
3815 vfs_context_t ctx)
3821 if ((error = nfs_node_set_busy(np, vfs_context_thread(ctx)))) {
3963 nfs3_mount_rpc(struct nfsmount *nmp, struct sockaddr *sa, int sotype, int nfsvers, char *path, vfs_context_t ctx, int timeo, fhandle_t *fh, struct nfs_sec *sec)
3966 thread_t thd = vfs_context_thread(ctx);
3967 kauth_cred_t cred = vfs_context_ucred(ctx);
3994 error = nfs_portmap_lookup(nmp, ctx, saddr, NULL, RPCPROG_MNT, mntvers, mntproto, timeo);
4046 nfs3_umount_rpc(struct nfsmount *nmp, vfs_context_t ctx, int timeo)
4049 thread_t thd = vfs_context_thread(ctx);
4050 kauth_cred_t cred = vfs_context_ucred(ctx);
4076 error = nfs_portmap_lookup(nmp, ctx, saddr, NULL, RPCPROG_MNT, mntvers, mntproto, timeo);
4126 __unused vfs_context_t ctx)
4495 nfs_vfs_root(mount_t mp, vnode_t *vpp, __unused vfs_context_t ctx)
4535 nfs3_getquota(struct nfsmount *nmp, vfs_context_t ctx, uid_t id, int type, struct dqblk *dqb)
4539 thread_t thd = vfs_context_thread(ctx);
4540 kauth_cred_t cred = vfs_context_ucred(ctx);
4573 error = nfs_portmap_lookup(nmp, ctx, rqsaddr, NULL, RPCPROG_RQUOTA, rqvers, rqproto, timeo);
4647 nfs4_getquota(struct nfsmount *nmp, vfs_context_t ctx, uid_t id, int type, struct dqblk *dqb)
4654 thread_t thd = vfs_context_thread(ctx);
4655 kauth_cred_t cred = vfs_context_ucred(ctx);
4734 nfs_vfs_quotactl(mount_t mp, int cmds, uid_t uid, caddr_t datap, vfs_context_t ctx)
4738 uid_t euid = kauth_cred_getuid(vfs_context_ucred(ctx));
4768 if ((uid != euid) && ((error = vfs_context_suser(ctx))))
4774 error = nmp->nm_funcs->nf_getquota(nmp, ctx, uid, type, dqb);
4786 vfs_context_t ctx;
4799 vn_revoke(vp, REVOKEALL, cargs->ctx);
4810 error = nfs_flush(np, cargs->waitfor, vfs_context_thread(cargs->ctx), 0);
4818 nfs_vfs_sync(mount_t mp, int waitfor, vfs_context_t ctx)
4823 cargs.ctx = ctx;
4841 __unused vfs_context_t ctx)
4857 __unused vfs_context_t ctx)
4872 __unused vfs_context_t ctx)
4886 __unused vfs_context_t ctx)
5194 user_addr_t newp, size_t newlen, vfs_context_t ctx)
5230 is_64_bit = vfs_context_is64bit(ctx);