git: 2d0afc3e0a8e - stable/13 - stand: For zfs, set dv_fmtdev to zfs_fmtdev

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

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

commit 2d0afc3e0a8e77778c9cc53c3bbedc71df305697
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-11 15:07:26 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:31 +0000

    stand: For zfs, set dv_fmtdev to zfs_fmtdev
    
    Add a generic way to get the string representation of a zfs device / mount.
    
    Sponsored by:           Netflix
    Reviewed by:            tsoome (prior version)
    Differential Revision:  https://reviews.freebsd.org/D35923
    
    [ Dropped changes to stand/libsa/zfs/Makefile.inc file, depends
      on newer OpenZFS ]
    
    (cherry picked from commit 654b7837a6a08ec5b51635badd14794754fab7c5)
---
 stand/libsa/zfs/zfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c
index 5392bcaa4fb1..0ac67d750fcd 100644
--- a/stand/libsa/zfs/zfs.c
+++ b/stand/libsa/zfs/zfs.c
@@ -1634,6 +1634,7 @@ struct devsw zfs_dev = {
 	.dv_ioctl = noioctl,
 	.dv_print = zfs_dev_print,
 	.dv_cleanup = nullsys,
+	.dv_fmtdev = zfs_fmtdev,
 };
 
 int