nfs_clrpcops.c (c04199affeacbd9e9dda3aaf5ca0b1b180031e78) | nfs_clrpcops.c (5666643a95389e3ea7637b86cc556d411242f71e) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Rick Macklem at The University of Guelph. --- 1858 unchanged lines hidden (view full) --- 1867 (void) nfsrv_putattrbit(nd, &attrbits); 1868 } 1869 error = nfscl_request(nd, vp, p, cred, stuff); 1870 if (error) 1871 return (error); 1872 if (nd->nd_repstat) { 1873 /* 1874 * In case the rpc gets retried, roll | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Rick Macklem at The University of Guelph. --- 1858 unchanged lines hidden (view full) --- 1867 (void) nfsrv_putattrbit(nd, &attrbits); 1868 } 1869 error = nfscl_request(nd, vp, p, cred, stuff); 1870 if (error) 1871 return (error); 1872 if (nd->nd_repstat) { 1873 /* 1874 * In case the rpc gets retried, roll |
1875 * the uio fileds changed by nfsm_uiombuf() | 1875 * the uio fields changed by nfsm_uiombuf() |
1876 * back. 1877 */ 1878 uiop->uio_offset -= len; 1879 uiop->uio_resid += len; 1880 uiop->uio_iov->iov_base = 1881 (char *)uiop->uio_iov->iov_base - len; 1882 uiop->uio_iov->iov_len += len; 1883 } --- 4534 unchanged lines hidden (view full) --- 6418 NFS_PROG, vers, NULL, 1, NULL, &dsp->nfsclds_sess); 6419 NFSCL_DEBUG(4, "nfsrpc_writeds: err=%d stat=%d\n", error, 6420 nd->nd_repstat); 6421 if (error != 0) 6422 return (error); 6423 if (nd->nd_repstat != 0) { 6424 /* 6425 * In case the rpc gets retried, roll | 1876 * back. 1877 */ 1878 uiop->uio_offset -= len; 1879 uiop->uio_resid += len; 1880 uiop->uio_iov->iov_base = 1881 (char *)uiop->uio_iov->iov_base - len; 1882 uiop->uio_iov->iov_len += len; 1883 } --- 4534 unchanged lines hidden (view full) --- 6418 NFS_PROG, vers, NULL, 1, NULL, &dsp->nfsclds_sess); 6419 NFSCL_DEBUG(4, "nfsrpc_writeds: err=%d stat=%d\n", error, 6420 nd->nd_repstat); 6421 if (error != 0) 6422 return (error); 6423 if (nd->nd_repstat != 0) { 6424 /* 6425 * In case the rpc gets retried, roll |
6426 * the uio fileds changed by nfsm_uiombuf() | 6426 * the uio fields changed by nfsm_uiombuf() |
6427 * back. 6428 */ 6429 uiop->uio_offset -= len; 6430 uiop->uio_resid += len; 6431 uiop->uio_iov->iov_base = (char *)uiop->uio_iov->iov_base - len; 6432 uiop->uio_iov->iov_len += len; 6433 error = nd->nd_repstat; 6434 } else { --- 2277 unchanged lines hidden --- | 6427 * back. 6428 */ 6429 uiop->uio_offset -= len; 6430 uiop->uio_resid += len; 6431 uiop->uio_iov->iov_base = (char *)uiop->uio_iov->iov_base - len; 6432 uiop->uio_iov->iov_len += len; 6433 error = nd->nd_repstat; 6434 } else { --- 2277 unchanged lines hidden --- |