[Bug 259090] UFS: bad file descriptor: soft update journaling can not be enabled on some FreeBSD-provided disk images – failed to write updated cg

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Nov 2022 23:00:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259090

Kirk McKusick <mckusick@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress

--- Comment #10 from Kirk McKusick <mckusick@FreeBSD.org> ---
Please try this patch and see if it helps:

diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 11956f946ff5..bad31512daab 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -312,6 +312,8 @@ main(int argc, char *argv[])
        on = special = argv[0];
        if (ufs_disk_fillout(&disk, special) == -1)
                goto err;
+       if (ufs_disk_write(&disk) == -1)
+               goto err;
        /*
         * Check for unclean filesystem.
         */

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