Back out my 'fix', resid is different for strategy than for write

This commit is contained in:
Alfred Perlstein 2001-11-30 06:24:34 +00:00
parent 7735bb0f64
commit 25993d3a47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87114

View File

@ -89,8 +89,8 @@ write(fd, dest, bcount)
btodb(f->f_offset), bcount, dest, &resid);
if (errno)
return (-1);
f->f_offset += (bcount - resid);
return (bcount - resid);
f->f_offset += resid;
return (resid);
}
resid = bcount;
if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid)))