From 25993d3a47ade5e7bd5d3318df81eefd2b0763f0 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Fri, 30 Nov 2001 06:24:34 +0000 Subject: [PATCH] Back out my 'fix', resid is different for strategy than for write --- lib/libstand/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libstand/write.c b/lib/libstand/write.c index 861a96fd372..ea9d491afa9 100644 --- a/lib/libstand/write.c +++ b/lib/libstand/write.c @@ -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)))