2 * linux/fs/nfs/nfs3proc.c
4 * Client-side NFSv3 procedures stubs.
6 * Copyright (C) 1997, Olaf Kirch
10 #include <linux/utsname.h>
11 #include <linux/errno.h>
12 #include <linux/string.h>
13 #include <linux/sunrpc/clnt.h>
14 #include <linux/nfs.h>
15 #include <linux/nfs3.h>
16 #include <linux/nfs_fs.h>
17 #include <linux/nfs_page.h>
18 #include <linux/lockd/bind.h>
19 #include <linux/smp_lock.h>
21 #define NFSDBG_FACILITY NFSDBG_PROC
23 extern struct rpc_procinfo nfs3_procedures[];
25 /* A wrapper to handle the EJUKEBOX error message */
27 nfs3_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags)
31 rpc_clnt_sigmask(clnt, &oldset);
33 res = rpc_call_sync(clnt, msg, flags);
36 set_current_state(TASK_INTERRUPTIBLE);
37 schedule_timeout(NFS_JUKEBOX_RETRY_TIME);
39 } while (!signalled());
40 rpc_clnt_sigunmask(clnt, &oldset);
45 nfs3_rpc_call_wrapper(struct rpc_clnt *clnt, u32 proc, void *argp, void *resp, int flags)
47 struct rpc_message msg = {
48 .rpc_proc = &nfs3_procedures[proc],
52 return nfs3_rpc_wrapper(clnt, &msg, flags);
55 #define rpc_call(clnt, proc, argp, resp, flags) \
56 nfs3_rpc_call_wrapper(clnt, proc, argp, resp, flags)
57 #define rpc_call_sync(clnt, msg, flags) \
58 nfs3_rpc_wrapper(clnt, msg, flags)
61 nfs3_async_handle_jukebox(struct rpc_task *task)
63 if (task->tk_status != -EJUKEBOX)
66 rpc_restart_call(task);
67 rpc_delay(task, NFS_JUKEBOX_RETRY_TIME);
71 static struct rpc_cred *
72 nfs_cred(struct inode *inode, struct file *filp)
74 struct rpc_cred *cred = NULL;
77 cred = (struct rpc_cred *)filp->private_data;
79 cred = NFS_I(inode)->mm_cred;
84 * Bare-bones access to getattr: this is for nfs_read_super.
87 nfs3_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle,
88 struct nfs_fsinfo *info)
92 dprintk("%s: call fsinfo\n", __FUNCTION__);
93 info->fattr->valid = 0;
94 status = rpc_call(server->client_sys, NFS3PROC_FSINFO, fhandle, info, 0);
95 dprintk("%s: reply fsinfo %d\n", __FUNCTION__, status);
96 if (!(info->fattr->valid & NFS_ATTR_FATTR)) {
97 status = rpc_call(server->client_sys, NFS3PROC_GETATTR, fhandle, info->fattr, 0);
98 dprintk("%s: reply getattr %d\n", __FUNCTION__, status);
104 * One function for each procedure in the NFS protocol.
107 nfs3_proc_getattr(struct inode *inode, struct nfs_fattr *fattr)
111 dprintk("NFS call getattr\n");
113 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_GETATTR,
114 NFS_FH(inode), fattr, 0);
115 dprintk("NFS reply getattr\n");
120 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
123 struct inode *inode = dentry->d_inode;
124 struct nfs3_sattrargs arg = {
130 dprintk("NFS call setattr\n");
132 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_SETATTR, &arg, fattr, 0);
133 dprintk("NFS reply setattr\n");
138 nfs3_proc_lookup(struct inode *dir, struct qstr *name,
139 struct nfs_fh *fhandle, struct nfs_fattr *fattr)
141 struct nfs_fattr dir_attr;
142 struct nfs3_diropargs arg = {
147 struct nfs3_diropres res = {
148 .dir_attr = &dir_attr,
154 dprintk("NFS call lookup %s\n", name->name);
157 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_LOOKUP, &arg, &res, 0);
158 if (status >= 0 && !(fattr->valid & NFS_ATTR_FATTR))
159 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_GETATTR,
161 dprintk("NFS reply lookup: %d\n", status);
163 status = nfs_refresh_inode(dir, &dir_attr);
168 nfs3_proc_access(struct inode *inode, struct rpc_cred *cred, int mode)
170 struct nfs_fattr fattr;
171 struct nfs3_accessargs arg = {
174 struct nfs3_accessres res = {
177 struct rpc_message msg = {
178 .rpc_proc = &nfs3_procedures[NFS3PROC_ACCESS],
185 dprintk("NFS call access\n");
189 arg.access |= NFS3_ACCESS_READ;
190 if (S_ISDIR(inode->i_mode)) {
191 if (mode & MAY_WRITE)
192 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE;
194 arg.access |= NFS3_ACCESS_LOOKUP;
196 if (mode & MAY_WRITE)
197 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND;
199 arg.access |= NFS3_ACCESS_EXECUTE;
201 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
202 nfs_refresh_inode(inode, &fattr);
203 dprintk("NFS reply access\n");
205 if (status == 0 && (arg.access & res.access) != arg.access)
211 nfs3_proc_readlink(struct inode *inode, struct page *page)
213 struct nfs_fattr fattr;
214 struct nfs3_readlinkargs args = {
216 .count = PAGE_CACHE_SIZE,
221 dprintk("NFS call readlink\n");
223 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_READLINK,
225 nfs_refresh_inode(inode, &fattr);
226 dprintk("NFS reply readlink: %d\n", status);
231 nfs3_proc_read(struct nfs_read_data *rdata, struct file *filp)
233 int flags = rdata->flags;
234 struct inode * inode = rdata->inode;
235 struct nfs_fattr * fattr = rdata->res.fattr;
236 struct rpc_message msg = {
237 .rpc_proc = &nfs3_procedures[NFS3PROC_READ],
238 .rpc_argp = &rdata->args,
239 .rpc_resp = &rdata->res,
243 dprintk("NFS call read %d @ %Ld\n", rdata->args.count,
244 (long long) rdata->args.offset);
246 msg.rpc_cred = nfs_cred(inode, filp);
247 status = rpc_call_sync(NFS_CLIENT(inode), &msg, flags);
249 nfs_refresh_inode(inode, fattr);
250 dprintk("NFS reply read: %d\n", status);
255 nfs3_proc_write(struct nfs_write_data *wdata, struct file *filp)
257 int rpcflags = wdata->flags;
258 struct inode * inode = wdata->inode;
259 struct nfs_fattr * fattr = wdata->res.fattr;
260 struct rpc_message msg = {
261 .rpc_proc = &nfs3_procedures[NFS3PROC_WRITE],
262 .rpc_argp = &wdata->args,
263 .rpc_resp = &wdata->res,
267 dprintk("NFS call write %d @ %Ld\n", wdata->args.count,
268 (long long) wdata->args.offset);
270 msg.rpc_cred = nfs_cred(inode, filp);
271 status = rpc_call_sync(NFS_CLIENT(inode), &msg, rpcflags);
273 nfs_refresh_inode(inode, fattr);
274 dprintk("NFS reply write: %d\n", status);
275 return status < 0? status : wdata->res.count;
279 nfs3_proc_commit(struct nfs_write_data *cdata, struct file *filp)
281 struct inode * inode = cdata->inode;
282 struct nfs_fattr * fattr = cdata->res.fattr;
283 struct rpc_message msg = {
284 .rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT],
285 .rpc_argp = &cdata->args,
286 .rpc_resp = &cdata->res,
290 dprintk("NFS call commit %d @ %Ld\n", cdata->args.count,
291 (long long) cdata->args.offset);
293 msg.rpc_cred = nfs_cred(inode, filp);
294 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
296 nfs_refresh_inode(inode, fattr);
297 dprintk("NFS reply commit: %d\n", status);
302 * Create a regular file.
303 * For now, we don't implement O_EXCL.
305 static struct inode *
306 nfs3_proc_create(struct inode *dir, struct qstr *name, struct iattr *sattr,
309 struct nfs_fh fhandle;
310 struct nfs_fattr fattr;
311 struct nfs_fattr dir_attr;
312 struct nfs3_createargs arg = {
318 struct nfs3_diropres res = {
319 .dir_attr = &dir_attr,
325 dprintk("NFS call create %s\n", name->name);
326 arg.createmode = NFS3_CREATE_UNCHECKED;
327 if (flags & O_EXCL) {
328 arg.createmode = NFS3_CREATE_EXCLUSIVE;
329 arg.verifier[0] = jiffies;
330 arg.verifier[1] = current->pid;
336 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_CREATE, &arg, &res, 0);
337 nfs_refresh_inode(dir, &dir_attr);
339 /* If the server doesn't support the exclusive creation semantics,
340 * try again with simple 'guarded' mode. */
341 if (status == NFSERR_NOTSUPP) {
342 switch (arg.createmode) {
343 case NFS3_CREATE_EXCLUSIVE:
344 arg.createmode = NFS3_CREATE_GUARDED;
347 case NFS3_CREATE_GUARDED:
348 arg.createmode = NFS3_CREATE_UNCHECKED;
351 case NFS3_CREATE_UNCHECKED:
358 dprintk("NFS reply create: %d\n", status);
362 if (fhandle.size == 0 || !(fattr.valid & NFS_ATTR_FATTR)) {
363 status = nfs3_proc_lookup(dir, name, &fhandle, &fattr);
368 /* When we created the file with exclusive semantics, make
369 * sure we set the attributes afterwards. */
370 if (arg.createmode == NFS3_CREATE_EXCLUSIVE) {
371 struct nfs3_sattrargs arg = {
375 dprintk("NFS call setattr (post-create)\n");
377 if (!(sattr->ia_valid & ATTR_ATIME_SET))
378 sattr->ia_valid |= ATTR_ATIME;
379 if (!(sattr->ia_valid & ATTR_MTIME_SET))
380 sattr->ia_valid |= ATTR_MTIME;
382 /* Note: we could use a guarded setattr here, but I'm
383 * not sure this buys us anything (and I'd have
384 * to revamp the NFSv3 XDR code) */
386 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_SETATTR,
388 dprintk("NFS reply setattr (post-create): %d\n", status);
392 inode = nfs_fhget(dir->i_sb, &fhandle, &fattr);
398 return ERR_PTR(status);
402 nfs3_proc_remove(struct inode *dir, struct qstr *name)
404 struct nfs_fattr dir_attr;
405 struct nfs3_diropargs arg = {
410 struct rpc_message msg = {
411 .rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE],
413 .rpc_resp = &dir_attr,
417 dprintk("NFS call remove %s\n", name->name);
419 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
420 nfs_refresh_inode(dir, &dir_attr);
421 dprintk("NFS reply remove: %d\n", status);
426 nfs3_proc_unlink_setup(struct rpc_message *msg, struct dentry *dir, struct qstr *name)
428 struct nfs3_diropargs *arg;
429 struct nfs_fattr *res;
431 arg = (struct nfs3_diropargs *)kmalloc(sizeof(*arg)+sizeof(*res), GFP_KERNEL);
434 res = (struct nfs_fattr*)(arg + 1);
435 arg->fh = NFS_FH(dir->d_inode);
436 arg->name = name->name;
437 arg->len = name->len;
439 msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE];
446 nfs3_proc_unlink_done(struct dentry *dir, struct rpc_task *task)
448 struct rpc_message *msg = &task->tk_msg;
449 struct nfs_fattr *dir_attr;
451 if (nfs3_async_handle_jukebox(task))
454 dir_attr = (struct nfs_fattr*)msg->rpc_resp;
455 nfs_refresh_inode(dir->d_inode, dir_attr);
456 kfree(msg->rpc_argp);
462 nfs3_proc_rename(struct inode *old_dir, struct qstr *old_name,
463 struct inode *new_dir, struct qstr *new_name)
465 struct nfs_fattr old_dir_attr, new_dir_attr;
466 struct nfs3_renameargs arg = {
467 .fromfh = NFS_FH(old_dir),
468 .fromname = old_name->name,
469 .fromlen = old_name->len,
470 .tofh = NFS_FH(new_dir),
471 .toname = new_name->name,
472 .tolen = new_name->len
474 struct nfs3_renameres res = {
475 .fromattr = &old_dir_attr,
476 .toattr = &new_dir_attr
480 dprintk("NFS call rename %s -> %s\n", old_name->name, new_name->name);
481 old_dir_attr.valid = 0;
482 new_dir_attr.valid = 0;
483 status = rpc_call(NFS_CLIENT(old_dir), NFS3PROC_RENAME, &arg, &res, 0);
484 nfs_refresh_inode(old_dir, &old_dir_attr);
485 nfs_refresh_inode(new_dir, &new_dir_attr);
486 dprintk("NFS reply rename: %d\n", status);
491 nfs3_proc_link(struct inode *inode, struct inode *dir, struct qstr *name)
493 struct nfs_fattr dir_attr, fattr;
494 struct nfs3_linkargs arg = {
495 .fromfh = NFS_FH(inode),
497 .toname = name->name,
500 struct nfs3_linkres res = {
501 .dir_attr = &dir_attr,
506 dprintk("NFS call link %s\n", name->name);
509 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_LINK, &arg, &res, 0);
510 nfs_refresh_inode(dir, &dir_attr);
511 nfs_refresh_inode(inode, &fattr);
512 dprintk("NFS reply link: %d\n", status);
517 nfs3_proc_symlink(struct inode *dir, struct qstr *name, struct qstr *path,
518 struct iattr *sattr, struct nfs_fh *fhandle,
519 struct nfs_fattr *fattr)
521 struct nfs_fattr dir_attr;
522 struct nfs3_symlinkargs arg = {
523 .fromfh = NFS_FH(dir),
524 .fromname = name->name,
525 .fromlen = name->len,
526 .topath = path->name,
530 struct nfs3_diropres res = {
531 .dir_attr = &dir_attr,
537 dprintk("NFS call symlink %s -> %s\n", name->name, path->name);
540 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_SYMLINK, &arg, &res, 0);
541 nfs_refresh_inode(dir, &dir_attr);
542 dprintk("NFS reply symlink: %d\n", status);
547 nfs3_proc_mkdir(struct inode *dir, struct qstr *name, struct iattr *sattr,
548 struct nfs_fh *fhandle, struct nfs_fattr *fattr)
550 struct nfs_fattr dir_attr;
551 struct nfs3_mkdirargs arg = {
557 struct nfs3_diropres res = {
558 .dir_attr = &dir_attr,
564 dprintk("NFS call mkdir %s\n", name->name);
567 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_MKDIR, &arg, &res, 0);
568 nfs_refresh_inode(dir, &dir_attr);
569 dprintk("NFS reply mkdir: %d\n", status);
574 nfs3_proc_rmdir(struct inode *dir, struct qstr *name)
576 struct nfs_fattr dir_attr;
577 struct nfs3_diropargs arg = {
584 dprintk("NFS call rmdir %s\n", name->name);
586 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_RMDIR, &arg, &dir_attr, 0);
587 nfs_refresh_inode(dir, &dir_attr);
588 dprintk("NFS reply rmdir: %d\n", status);
593 * The READDIR implementation is somewhat hackish - we pass the user buffer
594 * to the encode function, which installs it in the receive iovec.
595 * The decode function itself doesn't perform any decoding, it just makes
596 * sure the reply is syntactically correct.
598 * Also note that this implementation handles both plain readdir and
602 nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
603 u64 cookie, struct page *page, unsigned int count, int plus)
605 struct inode *dir = dentry->d_inode;
606 struct nfs_fattr dir_attr;
607 u32 *verf = NFS_COOKIEVERF(dir);
608 struct nfs3_readdirargs arg = {
611 .verf = {verf[0], verf[1]},
616 struct nfs3_readdirres res = {
617 .dir_attr = &dir_attr,
621 struct rpc_message msg = {
622 .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR],
632 msg.rpc_proc = &nfs3_procedures[NFS3PROC_READDIRPLUS];
634 dprintk("NFS call readdir%s %d\n",
635 plus? "plus" : "", (unsigned int) cookie);
638 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
639 nfs_refresh_inode(dir, &dir_attr);
640 dprintk("NFS reply readdir: %d\n", status);
646 nfs3_proc_mknod(struct inode *dir, struct qstr *name, struct iattr *sattr,
647 dev_t rdev, struct nfs_fh *fh, struct nfs_fattr *fattr)
649 struct nfs_fattr dir_attr;
650 struct nfs3_mknodargs arg = {
657 struct nfs3_diropres res = {
658 .dir_attr = &dir_attr,
664 switch (sattr->ia_mode & S_IFMT) {
665 case S_IFBLK: arg.type = NF3BLK; break;
666 case S_IFCHR: arg.type = NF3CHR; break;
667 case S_IFIFO: arg.type = NF3FIFO; break;
668 case S_IFSOCK: arg.type = NF3SOCK; break;
669 default: return -EINVAL;
672 dprintk("NFS call mknod %s %u:%u\n", name->name,
673 MAJOR(rdev), MINOR(rdev));
676 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_MKNOD, &arg, &res, 0);
677 nfs_refresh_inode(dir, &dir_attr);
678 dprintk("NFS reply mknod: %d\n", status);
683 nfs3_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
684 struct nfs_fsstat *stat)
688 dprintk("NFS call fsstat\n");
689 stat->fattr->valid = 0;
690 status = rpc_call(server->client, NFS3PROC_FSSTAT, fhandle, stat, 0);
691 dprintk("NFS reply statfs: %d\n", status);
696 nfs3_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle,
697 struct nfs_fsinfo *info)
701 dprintk("NFS call fsinfo\n");
702 info->fattr->valid = 0;
703 status = rpc_call(server->client_sys, NFS3PROC_FSINFO, fhandle, info, 0);
704 dprintk("NFS reply fsinfo: %d\n", status);
709 nfs3_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle,
710 struct nfs_pathconf *info)
714 dprintk("NFS call pathconf\n");
715 info->fattr->valid = 0;
716 status = rpc_call(server->client, NFS3PROC_PATHCONF, fhandle, info, 0);
717 dprintk("NFS reply pathconf: %d\n", status);
721 extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int);
724 nfs3_read_done(struct rpc_task *task)
726 struct nfs_write_data *data = (struct nfs_write_data *) task->tk_calldata;
728 if (nfs3_async_handle_jukebox(task))
730 /* Call back common NFS readpage processing */
731 if (task->tk_status >= 0)
732 nfs_refresh_inode(data->inode, &data->fattr);
733 nfs_readpage_result(task);
737 nfs3_proc_read_setup(struct nfs_read_data *data)
739 struct rpc_task *task = &data->task;
740 struct inode *inode = data->inode;
742 struct rpc_message msg = {
743 .rpc_proc = &nfs3_procedures[NFS3PROC_READ],
744 .rpc_argp = &data->args,
745 .rpc_resp = &data->res,
746 .rpc_cred = data->cred,
749 /* N.B. Do we need to test? Never called for swapfile inode */
750 flags = RPC_TASK_ASYNC | (IS_SWAPFILE(inode)? NFS_RPC_SWAPFLAGS : 0);
752 /* Finalize the task. */
753 rpc_init_task(task, NFS_CLIENT(inode), nfs3_read_done, flags);
754 rpc_call_setup(task, &msg, 0);
758 nfs3_write_done(struct rpc_task *task)
760 struct nfs_write_data *data;
762 if (nfs3_async_handle_jukebox(task))
764 data = (struct nfs_write_data *)task->tk_calldata;
765 if (task->tk_status >= 0)
766 nfs_refresh_inode(data->inode, data->res.fattr);
767 nfs_writeback_done(task);
771 nfs3_proc_write_setup(struct nfs_write_data *data, int how)
773 struct rpc_task *task = &data->task;
774 struct inode *inode = data->inode;
777 struct rpc_message msg = {
778 .rpc_proc = &nfs3_procedures[NFS3PROC_WRITE],
779 .rpc_argp = &data->args,
780 .rpc_resp = &data->res,
781 .rpc_cred = data->cred,
784 if (how & FLUSH_STABLE) {
785 if (!NFS_I(inode)->ncommit)
786 stable = NFS_FILE_SYNC;
788 stable = NFS_DATA_SYNC;
790 stable = NFS_UNSTABLE;
791 data->args.stable = stable;
793 /* Set the initial flags for the task. */
794 flags = (how & FLUSH_SYNC) ? 0 : RPC_TASK_ASYNC;
796 /* Finalize the task. */
797 rpc_init_task(task, NFS_CLIENT(inode), nfs3_write_done, flags);
798 rpc_call_setup(task, &msg, 0);
802 nfs3_commit_done(struct rpc_task *task)
804 struct nfs_write_data *data;
806 if (nfs3_async_handle_jukebox(task))
808 data = (struct nfs_write_data *)task->tk_calldata;
809 if (task->tk_status >= 0)
810 nfs_refresh_inode(data->inode, data->res.fattr);
811 nfs_commit_done(task);
815 nfs3_proc_commit_setup(struct nfs_write_data *data, int how)
817 struct rpc_task *task = &data->task;
818 struct inode *inode = data->inode;
820 struct rpc_message msg = {
821 .rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT],
822 .rpc_argp = &data->args,
823 .rpc_resp = &data->res,
824 .rpc_cred = data->cred,
827 /* Set the initial flags for the task. */
828 flags = (how & FLUSH_SYNC) ? 0 : RPC_TASK_ASYNC;
830 /* Finalize the task. */
831 rpc_init_task(task, NFS_CLIENT(inode), nfs3_commit_done, flags);
832 rpc_call_setup(task, &msg, 0);
836 * Set up the nfspage struct with the right credentials
839 nfs3_request_init(struct nfs_page *req, struct file *filp)
841 req->wb_cred = get_rpccred(nfs_cred(req->wb_inode, filp));
845 nfs3_request_compatible(struct nfs_page *req, struct file *filp, struct page *page)
847 if (req->wb_file != filp)
849 if (req->wb_page != page)
851 if (req->wb_cred != nfs_file_cred(filp))
857 nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
859 return nlmclnt_proc(filp->f_dentry->d_inode, cmd, fl);
862 struct nfs_rpc_ops nfs_v3_clientops = {
863 .version = 3, /* protocol version */
864 .dentry_ops = &nfs_dentry_operations,
865 .dir_inode_ops = &nfs_dir_inode_operations,
866 .getroot = nfs3_proc_get_root,
867 .getattr = nfs3_proc_getattr,
868 .setattr = nfs3_proc_setattr,
869 .lookup = nfs3_proc_lookup,
870 .access = nfs3_proc_access,
871 .readlink = nfs3_proc_readlink,
872 .read = nfs3_proc_read,
873 .write = nfs3_proc_write,
874 .commit = nfs3_proc_commit,
875 .create = nfs3_proc_create,
876 .remove = nfs3_proc_remove,
877 .unlink_setup = nfs3_proc_unlink_setup,
878 .unlink_done = nfs3_proc_unlink_done,
879 .rename = nfs3_proc_rename,
880 .link = nfs3_proc_link,
881 .symlink = nfs3_proc_symlink,
882 .mkdir = nfs3_proc_mkdir,
883 .rmdir = nfs3_proc_rmdir,
884 .readdir = nfs3_proc_readdir,
885 .mknod = nfs3_proc_mknod,
886 .statfs = nfs3_proc_statfs,
887 .fsinfo = nfs3_proc_fsinfo,
888 .pathconf = nfs3_proc_pathconf,
889 .decode_dirent = nfs3_decode_dirent,
890 .read_setup = nfs3_proc_read_setup,
891 .write_setup = nfs3_proc_write_setup,
892 .commit_setup = nfs3_proc_commit_setup,
893 .file_open = nfs_open,
894 .file_release = nfs_release,
895 .request_init = nfs3_request_init,
896 .request_compatible = nfs3_request_compatible,
897 .lock = nfs3_proc_lock,