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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to