Include error number in the "fsync: giving up on dirty" message

(in case it ever starts happening again in spite of 328444).

Submitted by: Andreas Longwitz <longwitz at incore.de>
This commit is contained in:
Kirk McKusick 2018-02-23 21:57:10 +00:00
parent 2e7e6fbce5
commit 16680b6af5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329880

View File

@ -714,12 +714,13 @@ vop_stdfsync(ap)
if ((mp != NULL && mp->mnt_secondary_writes > 0) ||
(error == 0 && --maxretry >= 0))
goto loop1;
error = EAGAIN;
if (error == 0)
error = EAGAIN;
}
}
BO_UNLOCK(bo);
if (error == EAGAIN)
vn_printf(vp, "fsync: giving up on dirty ");
if (error != 0)
vn_printf(vp, "fsync: giving up on dirty (error = %d) ", error);
return (error);
}