freebsd-skq/sys/ufs/ffs
John Baldwin f2620e9ceb Retire two unused background fsck sysctls.
These two sysctls were added to support UFS softupdates journalling
with snapshots.  However, the changes to fsck to use them were never
committed and there have never been any in-tree uses of these sysctls.

More details from Kirk:

When journalling got added to soft updates, its journal rollback freed
blocks that it thought were no longer in use. But it does not take
snapshots into account (i.e., if a snapshot is still using it, then it
cannot be freed). So I added the needed logic to fsck by having the
free go through the kernel's blkfree code so it could grab blocks that
were still needed by snapshots. That is done using the setbufoutput
hack. I never got that code working reliably, so it is still sitting
in my work directory. Which also explains why you still cannot take
snapshots on filesystems running with journalling...

In looking over my use of this feature, and in particular the troubles
I was having with it, I conclude that it may be better to extract the
code from the kernel that handles freeing blocks claimed by snapshots
and putting it into fsck directly. My original intent was that it is
complex and at the time changing, so only having to maintain it in one
place was appealing. But at this point it has not changed in years and
the hacks like setinode and setbufoutput to be able to use the kernel
code is sufficiently ugly, that I am leaning towards just extracting
it.

Reviewed by:	mckusick
MFC after:	1 week
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24484
2020-04-21 17:42:32 +00:00
..
ffs_alloc.c Retire two unused background fsck sysctls. 2020-04-21 17:42:32 +00:00
ffs_balloc.c ufs: add a setter for inode i_flag field 2020-01-13 02:31:51 +00:00
ffs_extern.h Update ffs_getcg() function to accept a flags parameter to be passed 2019-10-04 05:28:36 +00:00
ffs_inode.c Fixing the soft update macros in -r359612 triggered a previously 2020-04-09 23:51:18 +00:00
ffs_rawread.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
ffs_snapshot.c vfs: stop handling VI_OWEINACT in vget 2020-01-24 07:45:59 +00:00
ffs_softdep.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ffs_subr.c When mounting a UFS filesystem, return EINTEGRITY rather than EIO 2020-03-11 21:00:40 +00:00
ffs_suspend.c Use the devfs vnode rather than the mntfs vnode for permissions checks. 2020-03-09 15:55:13 +00:00
ffs_tables.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ffs_vfsops.c ufs: apply suspension for non-forced rw unmounts. 2020-04-10 01:24:16 +00:00
ffs_vnops.c VOP_GETPAGES_ASYNC(): consistently call iodone() callback in case of error. 2020-03-30 21:44:30 +00:00
fs.h Retire two unused background fsck sysctls. 2020-04-21 17:42:32 +00:00
softdep.h With INVARIANTS, track all softdep dependency structures centrally 2020-02-03 17:47:14 +00:00