nfs4state.c (8a60d42d26d31df8121b251c2b5c56eb24e729f1) | nfs4state.c (97e47fa11deae10ae72aa1109e700565c57152f5) |
---|---|
1/* 2* Copyright (c) 2001 The Regents of the University of Michigan. 3* All rights reserved. 4* 5* Kendrick Smith <kmsmith@umich.edu> 6* Andy Adamson <kandros@umich.edu> 7* 8* Redistribution and use in source and binary forms, with or without --- 3829 unchanged lines hidden (view full) --- 3838nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 3839 struct nfsd4_open_confirm *oc) 3840{ 3841 __be32 status; 3842 struct nfs4_openowner *oo; 3843 struct nfs4_ol_stateid *stp; 3844 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); 3845 | 1/* 2* Copyright (c) 2001 The Regents of the University of Michigan. 3* All rights reserved. 4* 5* Kendrick Smith <kmsmith@umich.edu> 6* Andy Adamson <kandros@umich.edu> 7* 8* Redistribution and use in source and binary forms, with or without --- 3829 unchanged lines hidden (view full) --- 3838nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 3839 struct nfsd4_open_confirm *oc) 3840{ 3841 __be32 status; 3842 struct nfs4_openowner *oo; 3843 struct nfs4_ol_stateid *stp; 3844 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); 3845 |
3846 dprintk("NFSD: nfsd4_open_confirm on file %.*s\n", 3847 (int)cstate->current_fh.fh_dentry->d_name.len, 3848 cstate->current_fh.fh_dentry->d_name.name); | 3846 dprintk("NFSD: nfsd4_open_confirm on file %pd\n", 3847 cstate->current_fh.fh_dentry); |
3849 3850 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); 3851 if (status) 3852 return status; 3853 3854 nfs4_lock_state(); 3855 3856 status = nfs4_preprocess_seqid_op(cstate, --- 60 unchanged lines hidden (view full) --- 3917nfsd4_open_downgrade(struct svc_rqst *rqstp, 3918 struct nfsd4_compound_state *cstate, 3919 struct nfsd4_open_downgrade *od) 3920{ 3921 __be32 status; 3922 struct nfs4_ol_stateid *stp; 3923 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); 3924 | 3848 3849 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); 3850 if (status) 3851 return status; 3852 3853 nfs4_lock_state(); 3854 3855 status = nfs4_preprocess_seqid_op(cstate, --- 60 unchanged lines hidden (view full) --- 3916nfsd4_open_downgrade(struct svc_rqst *rqstp, 3917 struct nfsd4_compound_state *cstate, 3918 struct nfsd4_open_downgrade *od) 3919{ 3920 __be32 status; 3921 struct nfs4_ol_stateid *stp; 3922 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); 3923 |
3925 dprintk("NFSD: nfsd4_open_downgrade on file %.*s\n", 3926 (int)cstate->current_fh.fh_dentry->d_name.len, 3927 cstate->current_fh.fh_dentry->d_name.name); | 3924 dprintk("NFSD: nfsd4_open_downgrade on file %pd\n", 3925 cstate->current_fh.fh_dentry); |
3928 3929 /* We don't yet support WANT bits: */ 3930 if (od->od_deleg_want) 3931 dprintk("NFSD: %s: od_deleg_want=0x%x ignored\n", __func__, 3932 od->od_deleg_want); 3933 3934 nfs4_lock_state(); 3935 status = nfs4_preprocess_confirmed_seqid_op(cstate, od->od_seqid, --- 39 unchanged lines hidden (view full) --- 3975 struct nfsd4_close *close) 3976{ 3977 __be32 status; 3978 struct nfs4_openowner *oo; 3979 struct nfs4_ol_stateid *stp; 3980 struct net *net = SVC_NET(rqstp); 3981 struct nfsd_net *nn = net_generic(net, nfsd_net_id); 3982 | 3926 3927 /* We don't yet support WANT bits: */ 3928 if (od->od_deleg_want) 3929 dprintk("NFSD: %s: od_deleg_want=0x%x ignored\n", __func__, 3930 od->od_deleg_want); 3931 3932 nfs4_lock_state(); 3933 status = nfs4_preprocess_confirmed_seqid_op(cstate, od->od_seqid, --- 39 unchanged lines hidden (view full) --- 3973 struct nfsd4_close *close) 3974{ 3975 __be32 status; 3976 struct nfs4_openowner *oo; 3977 struct nfs4_ol_stateid *stp; 3978 struct net *net = SVC_NET(rqstp); 3979 struct nfsd_net *nn = net_generic(net, nfsd_net_id); 3980 |
3983 dprintk("NFSD: nfsd4_close on file %.*s\n", 3984 (int)cstate->current_fh.fh_dentry->d_name.len, 3985 cstate->current_fh.fh_dentry->d_name.name); | 3981 dprintk("NFSD: nfsd4_close on file %pd\n", 3982 cstate->current_fh.fh_dentry); |
3986 3987 nfs4_lock_state(); 3988 status = nfs4_preprocess_seqid_op(cstate, close->cl_seqid, 3989 &close->cl_stateid, 3990 NFS4_OPEN_STID|NFS4_CLOSED_STID, 3991 &stp, nn); 3992 nfsd4_bump_seqid(cstate, status); 3993 if (status) --- 1265 unchanged lines hidden --- | 3983 3984 nfs4_lock_state(); 3985 status = nfs4_preprocess_seqid_op(cstate, close->cl_seqid, 3986 &close->cl_stateid, 3987 NFS4_OPEN_STID|NFS4_CLOSED_STID, 3988 &stp, nn); 3989 nfsd4_bump_seqid(cstate, status); 3990 if (status) --- 1265 unchanged lines hidden --- |