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

This commit is contained in:
alfred 2001-11-30 06:24:34 +00:00
parent 5f34351719
commit 5b71594d40

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)))