[pnfs] CVS: nfsv4
Dean Hildebrand
dhildebz at citi.umich.edu
Fri Sep 8 17:39:52 EDT 2006
CVSROOT: /cvs
Module name: nfsv4
Changes by: dhildebz at citi. 2006/09/08 17:39:52
Modified files:
cvs/pnfs/fs/nfsd: nfs4proc.c
Log message:
Return success even if underlying file system does not support
layoutreturn export operation.
Diff:
diff -r1.19 nfs4proc.c
933,939c933,938
< status = nfserr_inval;
< if (sb->s_export_op->layout_return) {
< status = sb->s_export_op->layout_return(current_fh->fh_dentry->d_inode,
< (void *)lrp);
<
< dprintk("pNFS %s: status %d type %d\n",
< __FUNCTION__, status, lrp->lr_type);
---
> /* Layout return export not supported,
> * nothing to do so return success.
> */
> if (!sb->s_export_op->layout_return) {
> dprintk("pNFS %s: Layout return op not supported, return success.\n",__FUNCTION__);
> status = nfs_ok;
942c941,946
< out:
---
>
> status = sb->s_export_op->layout_return(current_fh->fh_dentry->d_inode,
> (void *)lrp);
> out:
> dprintk("pNFS %s: status %d type %d\n",
> __FUNCTION__, status, lrp->lr_type);
More information about the pNFS
mailing list