git: 8de0b8412310 - stable/14 - softdep_mount: on journal start failure, report the mount point path

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 22 Sep 2024 09:36:51 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=8de0b84123109b8a15488267a0167ab2457de0b9

commit 8de0b84123109b8a15488267a0167ab2457de0b9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-15 08:05:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-21 21:19:50 +0000

    softdep_mount: on journal start failure, report the mount point path
    
    (cherry picked from commit 8276c6ea9cf7cc3c7a0bd5a50fd1db298656f514)
---
 sys/ufs/ffs/ffs_softdep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 961cb4493621..90f37c2c1ac3 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -2635,7 +2635,8 @@ softdep_mount(struct vnode *devvp,
 
 	if ((fs->fs_flags & FS_SUJ) &&
 	    (error = journal_mount(mp, fs, cred)) != 0) {
-		printf("Failed to start journal: %d\n", error);
+		printf("%s: failed to start journal: %d\n",
+		    mp->mnt_stat.f_mntonname, error);
 		softdep_unmount(mp);
 		return (error);
 	}