]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix for tunefs(8) unable to add a UFS/FFS soft update journal.
authorKirk McKusick <mckusick@FreeBSD.org>
Sat, 12 Nov 2022 23:36:07 +0000 (15:36 -0800)
committerKirk McKusick <mckusick@FreeBSD.org>
Sat, 12 Nov 2022 23:37:27 +0000 (15:37 -0800)
commit5c7ba6bdf83fda82cce70f384e2ec8218f13002e
tree942b2a2e00f972b7b003c0e99375b9aeb477f9dc
parent30a6c8a3a8a65074e531010f4adc8c1559f954ac
Fix for tunefs(8) unable to add a UFS/FFS soft update journal.

The reported bug is UFS: bad file descriptor: soft update journaling
can not be enabled on some FreeBSD-provided disk images – failed
to write updated cg.

The UFS library (libufs(3)) failed to reopen its disk descriptor
when first attempting to update a cylinder group. The error only
occurred when trying to add journaling to a filesystem whose first
cylinder group was too full to hold the journal.

PR:           259090
MFC after:    1 week
Sponsored by: The FreeBSD Foundation
lib/libufs/cgroup.c