Summary: | head -r320570 & -r320760 (e.g.): ufs snapshot creation broken & leads to fsck -B related SSD-trim "freeing free block" panics; more | ||
---|---|---|---|
Product: | Base System | Reporter: | Mark Millard <marklmi26-fbsd> |
Component: | kern | Assignee: | freebsd-fs (Nobody) <fs> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | kib, pho |
Priority: | --- | Keywords: | regression |
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Mark Millard
2017-07-12 22:12:25 UTC
Just running mksnap_ffs(8) on a pristine file system triggers: g_vfs_done():md5a[READ(offset=34368126976, length=28672)]error = 5 This on FreeBSD t1.osted.lan 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r320982: Fri Jul 14 13:16:44 CEST 2017 pho@t1.osted.lan:/usr/src/sys/amd64/compile/PHO amd64 Partial script: mdconfig -a -t swap -s 2g -u $mdstart || exit 1 bsdlabel -w md$mdstart auto newfs -U md${mdstart}$part > /dev/null mount /dev/md${mdstart}$part $mntpoint while ! mksnap_ffs $mntpoint $mntpoint/.snap/stress2; do :; done tail -5 /var/log/messages | grep "g_vfs_done():md5a" && s=1 A commit references this bug: Author: kib Date: Sun Jul 16 07:11:30 UTC 2017 New revision: 321040 URL: https://svnweb.freebsd.org/changeset/base/321040 Log: A followup to r320453, correct removal of the blocks from UFS snapshots. Tested by: pho PR: 220693 Sponsored by: The FreeBSD Foundation Changes: head/sys/ufs/ffs/ffs_alloc.c |