Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Apr 2020 23:51:19 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359760 - head/sys/ufs/ffs
Message-ID:  <202004092351.039NpJfZ091304@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mckusick
Date: Thu Apr  9 23:51:18 2020
New Revision: 359760
URL: https://svnweb.freebsd.org/changeset/base/359760

Log:
  Fixing the soft update macros in -r359612 triggered a previously
  hidden bug in the file truncation code. Until that bug is tracked
  down and fixed, revert to the old behavior.
  
  Reported by: Peter Holm
  Reviewed by: kib, Chuck Silvers

Modified:
  head/sys/ufs/ffs/ffs_inode.c

Modified: head/sys/ufs/ffs/ffs_inode.c
==============================================================================
--- head/sys/ufs/ffs/ffs_inode.c	Thu Apr  9 23:42:13 2020	(r359759)
+++ head/sys/ufs/ffs/ffs_inode.c	Thu Apr  9 23:51:18 2020	(r359760)
@@ -244,6 +244,7 @@ ffs_truncate(vp, length, flags, cred)
 	needextclean = 0;
 	softdeptrunc = 0;
 	journaltrunc = DOINGSUJ(vp);
+	journaltrunc = 0;	/* XXX temp patch until bug found */
 	if (journaltrunc == 0 && DOINGSOFTDEP(vp) && length == 0)
 		softdeptrunc = !softdep_slowdown(vp);
 	extblocks = 0;



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