[Bug 106107] UFS: fsck_ffs: left-over fsck_snapshot after unfinished background fsck if filesystem clean

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Dec 2022 21:26:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=106107

Kirk McKusick <mckusick@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|Open                        |Closed

--- Comment #7 from Kirk McKusick <mckusick@FreeBSD.org> ---
This problem was fixed not long after this bug report was filed (though I was
unaware of the bug report until now so did not close it). The fix is to open
the snapshot and then unlink it immediately after it is created. Since the
snapshot will have no references it will be removed when fsck closes the file
and/or exits. If the system crashes prior to fsck exiting then the next run of
fsck will find the unreferenced snapshot and remove it.

-- 
You are receiving this mail because:
You are the assignee for the bug.