git: 23f613c69740 - stable/14 - md(4): Stop symlinking vn.4 to md.4

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Sat, 08 Nov 2025 11:12:52 UTC
The branch stable/14 has been updated by 0mp:

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

commit 23f613c6974069270a3e14c1d6b7ac793489fc51
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-07-16 11:44:01 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-11-08 11:12:21 +0000

    md(4): Stop symlinking vn.4 to md.4
    
    We've done the same in the past to the vnconfig.8->mdconfig.8 link in:
        eb5f4569819 Remove ancient vnconfig symlink
    
    Reviewed by:    bcr, markj, ziaee
    Approved by:    markj (mentor)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D27122
    
    (cherry picked from commit 56eb7566c41902a14d4392f8a01c045dbde6de7e)
---
 ObsoleteFiles.inc       | 3 +++
 share/man/man4/Makefile | 1 -
 share/man/man4/md.4     | 4 ++--
 sys/dev/md/md.c         | 6 +++---
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
index de25b6608fe6..ce39d8eee2e4 100644
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -66,6 +66,9 @@ OLD_FILES+=usr/tests/usr.bin/xargs/regress.n2147483647.out
 # 20250728: Machine versions of 'runq.h' do not exist anymore
 OLD_FILES+=usr/include/machine/runq.h
 
+# 20250716: Remove an old manual page, vn(4) was removed in FreeBSD 5.0
+OLD_FILES+=usr/share/man/man4/vn.4.gz
+
 # 20250708: replace yaml.lua with lyaml
 OLD_FILES+=usr/share/flua/yaml.lua
 
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index f5eca038e800..e677e42c22d1 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -723,7 +723,6 @@ MLINKS+=lge.4 if_lge.4
 MLINKS+=lo.4 loop.4
 MLINKS+=lp.4 plip.4
 MLINKS+=malo.4 if_malo.4
-MLINKS+=md.4 vn.4
 MLINKS+=mem.4 kmem.4
 MLINKS+=mfi.4 mfi_linux.4 \
 	mfi.4 mfip.4
diff --git a/share/man/man4/md.4 b/share/man/man4/md.4
index acd52aecb675..7d14279f6623 100644
--- a/share/man/man4/md.4
+++ b/share/man/man4/md.4
@@ -5,7 +5,7 @@
 .\" this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
 .\" ----------------------------------------------------------------------------
 .\"
-.Dd January 8, 2020
+.Dd July 16, 2025
 .Dt MD 4
 .Os
 .Sh NAME
@@ -158,7 +158,7 @@ installation process.
 The
 .Nm
 driver did a hostile takeover of the
-.Xr vn 4
+.Sy vn
 driver in
 .Fx 5.0 .
 .Sh AUTHORS
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 1b434eda19a5..3057060d7adb 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -11,9 +11,9 @@
  */
 
 /*-
- * The following functions are based on the vn(4) driver: mdstart_swap(),
- * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(),
- * and as such under the following copyright:
+ * The following functions are based on the historical vn(4) driver:
+ * mdstart_swap(), mdstart_vnode(), mdcreate_swap(), mdcreate_vnode()
+ * and mddestroy(), and as such under the following copyright:
  *
  * Copyright (c) 1988 University of Utah.
  * Copyright (c) 1990, 1993