git: fe9661bce6a4 - stable/13 - stand: Use devformat rather than disk_devfmt

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:11:58 UTC
The branch stable/13 has been updated by imp:

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

commit fe9661bce6a4dcd9e99f13d28c973beba47efdee
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-11 15:06:53 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:30 +0000

    stand: Use devformat rather than disk_devfmt
    
    Fix layering violation and use devformat to get the string
    representation of the device to see if we're mounted yet or not. Remove
    added include to pickup disk.h.
    
    Sponsored by:           Netflix
    Reviewed by:            tsoome (prior version)
    Differential Revision:  https://reviews.freebsd.org/D35919
    
    [ minor changes because UFS changes interferred and were already merged ]
    
    (cherry picked from commit ec9f3e776f39286ccec9915f38cca9729e6f9241)
---
 stand/libsa/dosfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/stand/libsa/dosfs.c b/stand/libsa/dosfs.c
index b931648a364b..e50f8f25e16a 100644
--- a/stand/libsa/dosfs.c
+++ b/stand/libsa/dosfs.c
@@ -38,7 +38,6 @@ __FBSDID("$FreeBSD$");
 #include <stddef.h>
 
 #include "stand.h"
-#include "disk.h"
 
 #include "dosfs.h"
 
@@ -314,7 +313,7 @@ dos_open(const char *path, struct open_file *fd)
 	u_int size, clus;
 	int err;
 
-	dev = disk_fmtdev(fd->f_devdata);
+	dev = devformat((struct devdesc *)fd->f_devdata);
 	STAILQ_FOREACH(mnt, &mnt_list, dos_link) {
 		if (strcmp(dev, mnt->dos_dev) == 0)
 			break;