Back out my 'fix', resid is different for strategy than for write
This commit is contained in:
parent
7735bb0f64
commit
25993d3a47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87114
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user