Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2016 09:08:11 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r306170 - stable/11/sys/ufs/ufs
Message-ID:  <201609220908.u8M98B0r015732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Sep 22 09:08:11 2016
New Revision: 306170
URL: https://svnweb.freebsd.org/changeset/base/306170

Log:
  MFC r305598:
  When logging unlikely UFS_TRUNCATE() failure in ufs_direnter(),
  include error code.

Modified:
  stable/11/sys/ufs/ufs/ufs_lookup.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- stable/11/sys/ufs/ufs/ufs_lookup.c	Thu Sep 22 09:06:01 2016	(r306169)
+++ stable/11/sys/ufs/ufs/ufs_lookup.c	Thu Sep 22 09:08:11 2016	(r306170)
@@ -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)
-			vn_printf(dvp, "ufs_direnter: failed to truncate ");
+			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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609220908.u8M98B0r015732>