Deleted Added
full compact
nfs_clrpcops.c (201345) nfs_clrpcops.c (206688)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clrpcops.c 201345 2009-12-31 18:02:48Z rmacklem $");
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clrpcops.c 206688 2010-04-15 22:57:30Z rmacklem $");
36
37/*
38 * Rpc op calls, generally called from the vnode op calls or through the
39 * buffer cache, for NFS v2, 3 and 4.
40 * These do not normally make any changes to vnode arguments or use
41 * structures that might change between the VFS variants. The returned
42 * arguments are all at the end, after the NFSPROC_T *p one.
43 */

--- 229 unchanged lines hidden (view full) ---

273 (void) nfscl_deleg(nmp->nm_mountp,
274 op->nfso_own->nfsow_clp,
275 nfhp->nfh_fh, nfhp->nfh_len, cred, p, &dp);
276 }
277 } else {
278 error = EIO;
279 }
280 newnfs_copyincred(cred, &op->nfso_cred);
36
37/*
38 * Rpc op calls, generally called from the vnode op calls or through the
39 * buffer cache, for NFS v2, 3 and 4.
40 * These do not normally make any changes to vnode arguments or use
41 * structures that might change between the VFS variants. The returned
42 * arguments are all at the end, after the NFSPROC_T *p one.
43 */

--- 229 unchanged lines hidden (view full) ---

273 (void) nfscl_deleg(nmp->nm_mountp,
274 op->nfso_own->nfsow_clp,
275 nfhp->nfh_fh, nfhp->nfh_len, cred, p, &dp);
276 }
277 } else {
278 error = EIO;
279 }
280 newnfs_copyincred(cred, &op->nfso_cred);
281 }
281 } else if (ret == NFSCLOPEN_SETCRED)
282 /*
283 * This is a new local open on a delegation. It needs
284 * to have credentials so that an open can be done
285 * against the server during recovery.
286 */
287 newnfs_copyincred(cred, &op->nfso_cred);
282
283 /*
284 * nfso_opencnt is the count of how many VOP_OPEN()s have
285 * been done on this Open successfully and a VOP_CLOSE()
286 * is expected for each of these.
287 * If error is non-zero, don't increment it, since the Open
288 * hasn't succeeded yet.
289 */

--- 3878 unchanged lines hidden ---
288
289 /*
290 * nfso_opencnt is the count of how many VOP_OPEN()s have
291 * been done on this Open successfully and a VOP_CLOSE()
292 * is expected for each of these.
293 * If error is non-zero, don't increment it, since the Open
294 * hasn't succeeded yet.
295 */

--- 3878 unchanged lines hidden ---