Bug 278624

Summary: mdconfig does not show options set when listing devices
Product: Base System Reporter: Ricardo Branco <rbranco>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: 15.0-CURRENT   
Hardware: Any   
OS: Any   

Description Ricardo Branco 2024-04-27 19:48:46 UTC
Currently, we have no way of seeing options set to md(4) devices.

Fix: https://github.com/freebsd/freebsd-src/pull/1210

# mdconfig -a -f /root/backup.iso -o readonly -o verify

Before:
# mdconfig -l -v
md0	vnode	 1536K	/root/backup.iso

After:
# mdconfig -l -v
md0	vnode	 1536K	/root/backup.iso	-	readonly,verify
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-05-10 04:46:26 UTC
A commit in branch main references this bug:

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

commit b01988d5e570158534110ca309fe93112c5c62f1
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2024-05-10 04:42:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-10 04:43:09 +0000

    mdconfig: Print options when listing devices

    PR: 278624
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1210

 sbin/mdconfig/mdconfig.c | 90 ++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 76 insertions(+), 14 deletions(-)