2258 extern int nfs3_getattr_otw(vnode_t *, struct vattr *, cred_t *);
2259 extern int nfs3getattr(vnode_t *, struct vattr *, cred_t *);
2260 extern int fattr3_to_vattr(vnode_t *, fattr3 *, struct vattr *);
2261 extern int nfs3tsize(void);
2262 extern uint_t nfs3_tsize(struct knetconfig *);
2263 extern uint_t rfs3_tsize(struct svc_req *);
2264 extern int vattr_to_sattr3(struct vattr *, sattr3 *);
2265 extern void setdiropargs3(diropargs3 *, char *, vnode_t *);
2266 extern enum nfsstat3 puterrno3(int);
2267 extern int geterrno3(enum nfsstat3);
2268 extern int nfs3init(int, char *);
2269 extern void nfs3fini(void);
2270 extern int nfs3_vfsinit(void);
2271 extern void nfs3_vfsfini(void);
2272 extern void vattr_to_post_op_attr(struct vattr *, post_op_attr *);
2273 extern void mblk_to_iov(mblk_t *, int, struct iovec *);
2274 extern int rfs_publicfh_mclookup(char *, vnode_t *, cred_t *,
2275 vnode_t **, struct exportinfo **, struct sec_ol *);
2276 extern int rfs_pathname(char *, vnode_t **, vnode_t **,
2277 vnode_t *, cred_t *, int);
2278 extern vtype_t nf3_to_vt[];
2279 extern kstat_named_t *rfsproccnt_v3_ptr;
2280 extern vfsops_t *nfs3_vfsops;
2281 extern struct vnodeops *nfs3_vnodeops;
2282 extern const struct fs_operation_def nfs3_vnodeops_template[];
2283 #ifdef DEBUG
2284 extern int rfs3_do_pre_op_attr;
2285 extern int rfs3_do_post_op_attr;
2286 extern int rfs3_do_post_op_fh3;
2287 #endif
2288 /*
2289 * Some servers do not properly update the attributes of the
2290 * directory when changes are made. To allow interoperability
2291 * with these broken servers, the nfs_disable_rddir_cache
2292 * parameter can be used to disable readdir response caching.
2293 */
2294 extern int nfs_disable_rddir_cache;
2295
2296 /*
2297 * External functions called by the v2/v3 code into the v4 code
2298 */
2299 extern void nfs4_clnt_init(void);
2300 extern void nfs4_clnt_fini(void);
2301
2302 /*
2303 * Does NFS4 server have a vnode delegated? TRUE if so, FALSE if not.
2304 */
2305 extern bool_t rfs4_check_delegated(int mode, vnode_t *, bool_t trunc);
2306 /*
2307 * VOP_GETATTR call. If a NFS4 delegation is present on the supplied vnode
|
2258 extern int nfs3_getattr_otw(vnode_t *, struct vattr *, cred_t *);
2259 extern int nfs3getattr(vnode_t *, struct vattr *, cred_t *);
2260 extern int fattr3_to_vattr(vnode_t *, fattr3 *, struct vattr *);
2261 extern int nfs3tsize(void);
2262 extern uint_t nfs3_tsize(struct knetconfig *);
2263 extern uint_t rfs3_tsize(struct svc_req *);
2264 extern int vattr_to_sattr3(struct vattr *, sattr3 *);
2265 extern void setdiropargs3(diropargs3 *, char *, vnode_t *);
2266 extern enum nfsstat3 puterrno3(int);
2267 extern int geterrno3(enum nfsstat3);
2268 extern int nfs3init(int, char *);
2269 extern void nfs3fini(void);
2270 extern int nfs3_vfsinit(void);
2271 extern void nfs3_vfsfini(void);
2272 extern void vattr_to_post_op_attr(struct vattr *, post_op_attr *);
2273 extern void mblk_to_iov(mblk_t *, int, struct iovec *);
2274 extern int rfs_publicfh_mclookup(char *, vnode_t *, cred_t *,
2275 vnode_t **, struct exportinfo **, struct sec_ol *);
2276 extern int rfs_pathname(char *, vnode_t **, vnode_t **,
2277 vnode_t *, cred_t *, int);
2278 extern int rfs_cross_mnt(vnode_t **, struct exportinfo **);
2279 extern vtype_t nf3_to_vt[];
2280 extern kstat_named_t *rfsproccnt_v3_ptr;
2281 extern vfsops_t *nfs3_vfsops;
2282 extern struct vnodeops *nfs3_vnodeops;
2283 extern const struct fs_operation_def nfs3_vnodeops_template[];
2284
2285 /*
2286 * Some servers do not properly update the attributes of the
2287 * directory when changes are made. To allow interoperability
2288 * with these broken servers, the nfs_disable_rddir_cache
2289 * parameter can be used to disable readdir response caching.
2290 */
2291 extern int nfs_disable_rddir_cache;
2292
2293 /*
2294 * External functions called by the v2/v3 code into the v4 code
2295 */
2296 extern void nfs4_clnt_init(void);
2297 extern void nfs4_clnt_fini(void);
2298
2299 /*
2300 * Does NFS4 server have a vnode delegated? TRUE if so, FALSE if not.
2301 */
2302 extern bool_t rfs4_check_delegated(int mode, vnode_t *, bool_t trunc);
2303 /*
2304 * VOP_GETATTR call. If a NFS4 delegation is present on the supplied vnode
|