svn commit: r306180 - stable/10/sys/ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Thu Sep 22 10:51:49 UTC 2016
Author: kib
Date: Thu Sep 22 10:51:47 2016
New Revision: 306180
URL: https://svnweb.freebsd.org/changeset/base/306180
Log:
MFC r305598:
When logging unlikely UFS_TRUNCATE() failure in ufs_direnter(),
include error code.
Modified:
stable/10/sys/ufs/ufs/ufs_lookup.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- stable/10/sys/ufs/ufs/ufs_lookup.c Thu Sep 22 10:49:42 2016 (r306179)
+++ stable/10/sys/ufs/ufs/ufs_lookup.c Thu Sep 22 10:51:47 2016 (r306180)
@@ -1124,7 +1124,8 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdir
error = UFS_TRUNCATE(dvp, (off_t)dp->i_endoff,
IO_NORMAL | (DOINGASYNC(dvp) ? 0 : IO_SYNC), cr);
if (error != 0)
- vprint("ufs_direnter: failed to truncate", dvp);
+ vn_printf(dvp, "ufs_direnter: failed to truncate "
+ "err %d", error);
#ifdef UFS_DIRHASH
if (error == 0 && dp->i_dirhash != NULL)
ufsdirhash_dirtrunc(dp, dp->i_endoff);
More information about the svn-src-all
mailing list