o Remove commented out code which modified return values from

extattr_{get,set} syscalls in the face of partial reads or writes.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2000-09-05 02:13:14 +00:00
parent f1998090a4
commit b4d0de586d
2 changed files with 0 additions and 20 deletions

View File

@ -3611,11 +3611,6 @@ extattr_set_file(p, uap)
cnt = auio.uio_resid;
error = VOP_SETEXTATTR(nd.ni_vp, attrname, &auio, p->p_cred->pc_ucred,
p);
/*
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))
error = 0;
*/
cnt -= auio.uio_resid;
p->p_retval[0] = cnt;
done:
@ -3683,11 +3678,6 @@ extattr_get_file(p, uap)
cnt = auio.uio_resid;
error = VOP_GETEXTATTR(nd.ni_vp, attrname, &auio, p->p_cred->pc_ucred,
p);
/*
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))
error = 0;
*/
cnt -= auio.uio_resid;
p->p_retval[0] = cnt;
done:

View File

@ -3611,11 +3611,6 @@ extattr_set_file(p, uap)
cnt = auio.uio_resid;
error = VOP_SETEXTATTR(nd.ni_vp, attrname, &auio, p->p_cred->pc_ucred,
p);
/*
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))
error = 0;
*/
cnt -= auio.uio_resid;
p->p_retval[0] = cnt;
done:
@ -3683,11 +3678,6 @@ extattr_get_file(p, uap)
cnt = auio.uio_resid;
error = VOP_GETEXTATTR(nd.ni_vp, attrname, &auio, p->p_cred->pc_ucred,
p);
/*
if (auio.uio_resid != cnt && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))
error = 0;
*/
cnt -= auio.uio_resid;
p->p_retval[0] = cnt;
done: