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);
72 * Bare-bones access to getattr: this is for nfs_read_super.
75 nfs3_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle,
76 struct nfs_fsinfo *info)
80 dprintk("%s: call fsinfo\n", __FUNCTION__);
81 info->fattr->valid = 0;
82 status = rpc_call(server->client_sys, NFS3PROC_FSINFO, fhandle, info, 0);
83 dprintk("%s: reply fsinfo: %d\n", __FUNCTION__, status);
84 if (!(info->fattr->valid & NFS_ATTR_FATTR)) {
85 status = rpc_call(server->client_sys, NFS3PROC_GETATTR, fhandle, info->fattr, 0);
86 dprintk("%s: reply getattr: %d\n", __FUNCTION__, status);
92 * One function for each procedure in the NFS protocol.
95 nfs3_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
96 struct nfs_fattr *fattr)
100 dprintk("NFS call getattr\n");
102 status = rpc_call(server->client, NFS3PROC_GETATTR,
104 dprintk("NFS reply getattr: %d\n", status);
109 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
112 struct inode *inode = dentry->d_inode;
113 struct nfs3_sattrargs arg = {
119 dprintk("NFS call setattr\n");
121 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_SETATTR, &arg, fattr, 0);
122 dprintk("NFS reply setattr: %d\n", status);
127 nfs3_proc_lookup(struct inode *dir, struct qstr *name,
128 struct nfs_fh *fhandle, struct nfs_fattr *fattr)
130 struct nfs_fattr dir_attr;
131 struct nfs3_diropargs arg = {
136 struct nfs3_diropres res = {
137 .dir_attr = &dir_attr,
143 dprintk("NFS call lookup %s\n", name->name);
146 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_LOOKUP, &arg, &res, 0);
147 if (status >= 0 && !(fattr->valid & NFS_ATTR_FATTR))
148 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_GETATTR,
150 dprintk("NFS reply lookup: %d\n", status);
152 status = nfs_refresh_inode(dir, &dir_attr);
156 static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)
158 struct nfs_fattr fattr;
159 struct nfs3_accessargs arg = {
162 struct nfs3_accessres res = {
165 struct rpc_message msg = {
166 .rpc_proc = &nfs3_procedures[NFS3PROC_ACCESS],
169 .rpc_cred = entry->cred
171 int mode = entry->mask;
174 dprintk("NFS call access\n");
178 arg.access |= NFS3_ACCESS_READ;
179 if (S_ISDIR(inode->i_mode)) {
180 if (mode & MAY_WRITE)
181 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE;
183 arg.access |= NFS3_ACCESS_LOOKUP;
185 if (mode & MAY_WRITE)
186 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND;
188 arg.access |= NFS3_ACCESS_EXECUTE;
190 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
191 nfs_refresh_inode(inode, &fattr);
194 if (res.access & NFS3_ACCESS_READ)
195 entry->mask |= MAY_READ;
196 if (res.access & (NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE))
197 entry->mask |= MAY_WRITE;
198 if (res.access & (NFS3_ACCESS_LOOKUP|NFS3_ACCESS_EXECUTE))
199 entry->mask |= MAY_EXEC;
201 dprintk("NFS reply access: %d\n", status);
205 static int nfs3_proc_readlink(struct inode *inode, struct page *page,
206 unsigned int pgbase, unsigned int pglen)
208 struct nfs_fattr fattr;
209 struct nfs3_readlinkargs args = {
217 dprintk("NFS call readlink\n");
219 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_READLINK,
221 nfs_refresh_inode(inode, &fattr);
222 dprintk("NFS reply readlink: %d\n", status);
226 static int nfs3_proc_read(struct nfs_read_data *rdata)
228 int flags = rdata->flags;
229 struct inode * inode = rdata->inode;
230 struct nfs_fattr * fattr = rdata->res.fattr;
231 struct rpc_message msg = {
232 .rpc_proc = &nfs3_procedures[NFS3PROC_READ],
233 .rpc_argp = &rdata->args,
234 .rpc_resp = &rdata->res,
235 .rpc_cred = rdata->cred,
239 dprintk("NFS call read %d @ %Ld\n", rdata->args.count,
240 (long long) rdata->args.offset);
242 status = rpc_call_sync(NFS_CLIENT(inode), &msg, flags);
244 nfs_refresh_inode(inode, fattr);
245 dprintk("NFS reply read: %d\n", status);
249 static int nfs3_proc_write(struct nfs_write_data *wdata)
251 int rpcflags = wdata->flags;
252 struct inode * inode = wdata->inode;
253 struct nfs_fattr * fattr = wdata->res.fattr;
254 struct rpc_message msg = {
255 .rpc_proc = &nfs3_procedures[NFS3PROC_WRITE],
256 .rpc_argp = &wdata->args,
257 .rpc_resp = &wdata->res,
258 .rpc_cred = wdata->cred,
262 dprintk("NFS call write %d @ %Ld\n", wdata->args.count,
263 (long long) wdata->args.offset);
265 status = rpc_call_sync(NFS_CLIENT(inode), &msg, rpcflags);
267 nfs_refresh_inode(inode, fattr);
268 dprintk("NFS reply write: %d\n", status);
269 return status < 0? status : wdata->res.count;
272 static int nfs3_proc_commit(struct nfs_write_data *cdata)
274 struct inode * inode = cdata->inode;
275 struct nfs_fattr * fattr = cdata->res.fattr;
276 struct rpc_message msg = {
277 .rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT],
278 .rpc_argp = &cdata->args,
279 .rpc_resp = &cdata->res,
280 .rpc_cred = cdata->cred,
284 dprintk("NFS call commit %d @ %Ld\n", cdata->args.count,
285 (long long) cdata->args.offset);
287 status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
289 nfs_refresh_inode(inode, fattr);
290 dprintk("NFS reply commit: %d\n", status);
295 * Create a regular file.
296 * For now, we don't implement O_EXCL.
298 static struct inode *
299 nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
302 struct nfs_fh fhandle;
303 struct nfs_fattr fattr;
304 struct nfs_fattr dir_attr;
305 struct nfs3_createargs arg = {
307 .name = dentry->d_name.name,
308 .len = dentry->d_name.len,
311 struct nfs3_diropres res = {
312 .dir_attr = &dir_attr,
318 dprintk("NFS call create %s\n", dentry->d_name.name);
319 arg.createmode = NFS3_CREATE_UNCHECKED;
320 if (flags & O_EXCL) {
321 arg.createmode = NFS3_CREATE_EXCLUSIVE;
322 arg.verifier[0] = jiffies;
323 arg.verifier[1] = current->pid;
329 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_CREATE, &arg, &res, 0);
330 nfs_refresh_inode(dir, &dir_attr);
332 /* If the server doesn't support the exclusive creation semantics,
333 * try again with simple 'guarded' mode. */
334 if (status == NFSERR_NOTSUPP) {
335 switch (arg.createmode) {
336 case NFS3_CREATE_EXCLUSIVE:
337 arg.createmode = NFS3_CREATE_GUARDED;
340 case NFS3_CREATE_GUARDED:
341 arg.createmode = NFS3_CREATE_UNCHECKED;
344 case NFS3_CREATE_UNCHECKED:
351 dprintk("NFS reply create: %d\n", status);
355 if (fhandle.size == 0 || !(fattr.valid & NFS_ATTR_FATTR)) {
356 status = nfs3_proc_lookup(dir, &dentry->d_name, &fhandle, &fattr);
361 /* When we created the file with exclusive semantics, make
362 * sure we set the attributes afterwards. */
363 if (arg.createmode == NFS3_CREATE_EXCLUSIVE) {
364 struct nfs3_sattrargs arg = {
368 dprintk("NFS call setattr (post-create)\n");
370 if (!(sattr->ia_valid & ATTR_ATIME_SET))
371 sattr->ia_valid |= ATTR_ATIME;
372 if (!(sattr->ia_valid & ATTR_MTIME_SET))
373 sattr->ia_valid |= ATTR_MTIME;
375 /* Note: we could use a guarded setattr here, but I'm
376 * not sure this buys us anything (and I'd have
377 * to revamp the NFSv3 XDR code) */
379 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_SETATTR,
381 dprintk("NFS reply setattr (post-create): %d\n", status);
385 inode = nfs_fhget(dir->i_sb, &fhandle, &fattr);
391 return ERR_PTR(status);
395 nfs3_proc_remove(struct inode *dir, struct qstr *name)
397 struct nfs_fattr dir_attr;
398 struct nfs3_diropargs arg = {
403 struct rpc_message msg = {
404 .rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE],
406 .rpc_resp = &dir_attr,
410 dprintk("NFS call remove %s\n", name->name);
412 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
413 nfs_refresh_inode(dir, &dir_attr);
414 dprintk("NFS reply remove: %d\n", status);
419 nfs3_proc_unlink_setup(struct rpc_message *msg, struct dentry *dir, struct qstr *name)
422 struct nfs3_diropargs arg;
423 struct nfs_fattr res;
426 ptr = (struct unlinkxdr *)kmalloc(sizeof(*ptr), GFP_KERNEL);
429 ptr->arg.fh = NFS_FH(dir->d_inode);
430 ptr->arg.name = name->name;
431 ptr->arg.len = name->len;
433 msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE];
434 msg->rpc_argp = &ptr->arg;
435 msg->rpc_resp = &ptr->res;
440 nfs3_proc_unlink_done(struct dentry *dir, struct rpc_task *task)
442 struct rpc_message *msg = &task->tk_msg;
443 struct nfs_fattr *dir_attr;
445 if (nfs3_async_handle_jukebox(task))
448 dir_attr = (struct nfs_fattr*)msg->rpc_resp;
449 nfs_refresh_inode(dir->d_inode, dir_attr);
450 kfree(msg->rpc_argp);
456 nfs3_proc_rename(struct inode *old_dir, struct qstr *old_name,
457 struct inode *new_dir, struct qstr *new_name)
459 struct nfs_fattr old_dir_attr, new_dir_attr;
460 struct nfs3_renameargs arg = {
461 .fromfh = NFS_FH(old_dir),
462 .fromname = old_name->name,
463 .fromlen = old_name->len,
464 .tofh = NFS_FH(new_dir),
465 .toname = new_name->name,
466 .tolen = new_name->len
468 struct nfs3_renameres res = {
469 .fromattr = &old_dir_attr,
470 .toattr = &new_dir_attr
474 dprintk("NFS call rename %s -> %s\n", old_name->name, new_name->name);
475 old_dir_attr.valid = 0;
476 new_dir_attr.valid = 0;
477 status = rpc_call(NFS_CLIENT(old_dir), NFS3PROC_RENAME, &arg, &res, 0);
478 nfs_refresh_inode(old_dir, &old_dir_attr);
479 nfs_refresh_inode(new_dir, &new_dir_attr);
480 dprintk("NFS reply rename: %d\n", status);
485 nfs3_proc_link(struct inode *inode, struct inode *dir, struct qstr *name)
487 struct nfs_fattr dir_attr, fattr;
488 struct nfs3_linkargs arg = {
489 .fromfh = NFS_FH(inode),
491 .toname = name->name,
494 struct nfs3_linkres res = {
495 .dir_attr = &dir_attr,
500 dprintk("NFS call link %s\n", name->name);
503 status = rpc_call(NFS_CLIENT(inode), NFS3PROC_LINK, &arg, &res, 0);
504 nfs_refresh_inode(dir, &dir_attr);
505 nfs_refresh_inode(inode, &fattr);
506 dprintk("NFS reply link: %d\n", status);
511 nfs3_proc_symlink(struct inode *dir, struct qstr *name, struct qstr *path,
512 struct iattr *sattr, struct nfs_fh *fhandle,
513 struct nfs_fattr *fattr)
515 struct nfs_fattr dir_attr;
516 struct nfs3_symlinkargs arg = {
517 .fromfh = NFS_FH(dir),
518 .fromname = name->name,
519 .fromlen = name->len,
520 .topath = path->name,
524 struct nfs3_diropres res = {
525 .dir_attr = &dir_attr,
531 if (path->len > NFS3_MAXPATHLEN)
532 return -ENAMETOOLONG;
533 dprintk("NFS call symlink %s -> %s\n", name->name, path->name);
536 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_SYMLINK, &arg, &res, 0);
537 nfs_refresh_inode(dir, &dir_attr);
538 dprintk("NFS reply symlink: %d\n", status);
543 nfs3_proc_mkdir(struct inode *dir, struct qstr *name, struct iattr *sattr,
544 struct nfs_fh *fhandle, struct nfs_fattr *fattr)
546 struct nfs_fattr dir_attr;
547 struct nfs3_mkdirargs arg = {
553 struct nfs3_diropres res = {
554 .dir_attr = &dir_attr,
560 dprintk("NFS call mkdir %s\n", name->name);
563 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_MKDIR, &arg, &res, 0);
564 nfs_refresh_inode(dir, &dir_attr);
565 dprintk("NFS reply mkdir: %d\n", status);
570 nfs3_proc_rmdir(struct inode *dir, struct qstr *name)
572 struct nfs_fattr dir_attr;
573 struct nfs3_diropargs arg = {
580 dprintk("NFS call rmdir %s\n", name->name);
582 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_RMDIR, &arg, &dir_attr, 0);
583 nfs_refresh_inode(dir, &dir_attr);
584 dprintk("NFS reply rmdir: %d\n", status);
589 * The READDIR implementation is somewhat hackish - we pass the user buffer
590 * to the encode function, which installs it in the receive iovec.
591 * The decode function itself doesn't perform any decoding, it just makes
592 * sure the reply is syntactically correct.
594 * Also note that this implementation handles both plain readdir and
598 nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
599 u64 cookie, struct page *page, unsigned int count, int plus)
601 struct inode *dir = dentry->d_inode;
602 struct nfs_fattr dir_attr;
603 u32 *verf = NFS_COOKIEVERF(dir);
604 struct nfs3_readdirargs arg = {
607 .verf = {verf[0], verf[1]},
612 struct nfs3_readdirres res = {
613 .dir_attr = &dir_attr,
617 struct rpc_message msg = {
618 .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR],
628 msg.rpc_proc = &nfs3_procedures[NFS3PROC_READDIRPLUS];
630 dprintk("NFS call readdir%s %d\n",
631 plus? "plus" : "", (unsigned int) cookie);
634 status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
635 nfs_refresh_inode(dir, &dir_attr);
636 dprintk("NFS reply readdir: %d\n", status);
642 nfs3_proc_mknod(struct inode *dir, struct qstr *name, struct iattr *sattr,
643 dev_t rdev, struct nfs_fh *fh, struct nfs_fattr *fattr)
645 struct nfs_fattr dir_attr;
646 struct nfs3_mknodargs arg = {
653 struct nfs3_diropres res = {
654 .dir_attr = &dir_attr,
660 switch (sattr->ia_mode & S_IFMT) {
661 case S_IFBLK: arg.type = NF3BLK; break;
662 case S_IFCHR: arg.type = NF3CHR; break;
663 case S_IFIFO: arg.type = NF3FIFO; break;
664 case S_IFSOCK: arg.type = NF3SOCK; break;
665 default: return -EINVAL;
668 dprintk("NFS call mknod %s %u:%u\n", name->name,
669 MAJOR(rdev), MINOR(rdev));
672 status = rpc_call(NFS_CLIENT(dir), NFS3PROC_MKNOD, &arg, &res, 0);
673 nfs_refresh_inode(dir, &dir_attr);
674 dprintk("NFS reply mknod: %d\n", status);
679 nfs3_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle,
680 struct nfs_fsstat *stat)
684 dprintk("NFS call fsstat\n");
685 stat->fattr->valid = 0;
686 status = rpc_call(server->client, NFS3PROC_FSSTAT, fhandle, stat, 0);
687 dprintk("NFS reply statfs: %d\n", status);
692 nfs3_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle,
693 struct nfs_fsinfo *info)
697 dprintk("NFS call fsinfo\n");
698 info->fattr->valid = 0;
699 status = rpc_call(server->client_sys, NFS3PROC_FSINFO, fhandle, info, 0);
700 dprintk("NFS reply fsinfo: %d\n", status);
705 nfs3_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle,
706 struct nfs_pathconf *info)
710 dprintk("NFS call pathconf\n");
711 info->fattr->valid = 0;
712 status = rpc_call(server->client, NFS3PROC_PATHCONF, fhandle, info, 0);
713 dprintk("NFS reply pathconf: %d\n", status);
717 extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int);
720 nfs3_read_done(struct rpc_task *task)
722 struct nfs_write_data *data = (struct nfs_write_data *) task->tk_calldata;
724 if (nfs3_async_handle_jukebox(task))
726 /* Call back common NFS readpage processing */
727 if (task->tk_status >= 0)
728 nfs_refresh_inode(data->inode, &data->fattr);
729 nfs_readpage_result(task);
733 nfs3_proc_read_setup(struct nfs_read_data *data)
735 struct rpc_task *task = &data->task;
736 struct inode *inode = data->inode;
738 struct rpc_message msg = {
739 .rpc_proc = &nfs3_procedures[NFS3PROC_READ],
740 .rpc_argp = &data->args,
741 .rpc_resp = &data->res,
742 .rpc_cred = data->cred,
745 /* N.B. Do we need to test? Never called for swapfile inode */
746 flags = RPC_TASK_ASYNC | (IS_SWAPFILE(inode)? NFS_RPC_SWAPFLAGS : 0);
748 /* Finalize the task. */
749 rpc_init_task(task, NFS_CLIENT(inode), nfs3_read_done, flags);
750 rpc_call_setup(task, &msg, 0);
754 nfs3_write_done(struct rpc_task *task)
756 struct nfs_write_data *data;
758 if (nfs3_async_handle_jukebox(task))
760 data = (struct nfs_write_data *)task->tk_calldata;
761 if (task->tk_status >= 0)
762 nfs_refresh_inode(data->inode, data->res.fattr);
763 nfs_writeback_done(task);
767 nfs3_proc_write_setup(struct nfs_write_data *data, int how)
769 struct rpc_task *task = &data->task;
770 struct inode *inode = data->inode;
773 struct rpc_message msg = {
774 .rpc_proc = &nfs3_procedures[NFS3PROC_WRITE],
775 .rpc_argp = &data->args,
776 .rpc_resp = &data->res,
777 .rpc_cred = data->cred,
780 if (how & FLUSH_STABLE) {
781 if (!NFS_I(inode)->ncommit)
782 stable = NFS_FILE_SYNC;
784 stable = NFS_DATA_SYNC;
786 stable = NFS_UNSTABLE;
787 data->args.stable = stable;
789 /* Set the initial flags for the task. */
790 flags = (how & FLUSH_SYNC) ? 0 : RPC_TASK_ASYNC;
792 /* Finalize the task. */
793 rpc_init_task(task, NFS_CLIENT(inode), nfs3_write_done, flags);
794 rpc_call_setup(task, &msg, 0);
798 nfs3_commit_done(struct rpc_task *task)
800 struct nfs_write_data *data;
802 if (nfs3_async_handle_jukebox(task))
804 data = (struct nfs_write_data *)task->tk_calldata;
805 if (task->tk_status >= 0)
806 nfs_refresh_inode(data->inode, data->res.fattr);
807 nfs_commit_done(task);
811 nfs3_proc_commit_setup(struct nfs_write_data *data, int how)
813 struct rpc_task *task = &data->task;
814 struct inode *inode = data->inode;
816 struct rpc_message msg = {
817 .rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT],
818 .rpc_argp = &data->args,
819 .rpc_resp = &data->res,
820 .rpc_cred = data->cred,
823 /* Set the initial flags for the task. */
824 flags = (how & FLUSH_SYNC) ? 0 : RPC_TASK_ASYNC;
826 /* Finalize the task. */
827 rpc_init_task(task, NFS_CLIENT(inode), nfs3_commit_done, flags);
828 rpc_call_setup(task, &msg, 0);
832 nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
834 return nlmclnt_proc(filp->f_dentry->d_inode, cmd, fl);
837 struct nfs_rpc_ops nfs_v3_clientops = {
838 .version = 3, /* protocol version */
839 .dentry_ops = &nfs_dentry_operations,
840 .dir_inode_ops = &nfs_dir_inode_operations,
841 .getroot = nfs3_proc_get_root,
842 .getattr = nfs3_proc_getattr,
843 .setattr = nfs3_proc_setattr,
844 .lookup = nfs3_proc_lookup,
845 .access = nfs3_proc_access,
846 .readlink = nfs3_proc_readlink,
847 .read = nfs3_proc_read,
848 .write = nfs3_proc_write,
849 .commit = nfs3_proc_commit,
850 .create = nfs3_proc_create,
851 .remove = nfs3_proc_remove,
852 .unlink_setup = nfs3_proc_unlink_setup,
853 .unlink_done = nfs3_proc_unlink_done,
854 .rename = nfs3_proc_rename,
855 .link = nfs3_proc_link,
856 .symlink = nfs3_proc_symlink,
857 .mkdir = nfs3_proc_mkdir,
858 .rmdir = nfs3_proc_rmdir,
859 .readdir = nfs3_proc_readdir,
860 .mknod = nfs3_proc_mknod,
861 .statfs = nfs3_proc_statfs,
862 .fsinfo = nfs3_proc_fsinfo,
863 .pathconf = nfs3_proc_pathconf,
864 .decode_dirent = nfs3_decode_dirent,
865 .read_setup = nfs3_proc_read_setup,
866 .write_setup = nfs3_proc_write_setup,
867 .commit_setup = nfs3_proc_commit_setup,
868 .file_open = nfs_open,
869 .file_release = nfs_release,
870 .lock = nfs3_proc_lock,