From 621a274820c8f986514a8e909a579d6f082edb38 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 9 Apr 2020 23:51:18 +0000 Subject: 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 --- sys/ufs/ffs/ffs_inode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 237436fb167e..1783053173be 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -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; -- cgit v1.2.3