svn commit: r359760 - head/sys/ufs/ffs

Kirk McKusick mckusick at FreeBSD.org
Thu Apr 9 23:51:19 UTC 2020


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;


More information about the svn-src-head mailing list