Bug 278624 - mdconfig does not show options set when listing devices
Summary: mdconfig does not show options set when listing devices
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 15.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-27 19:48 UTC by Ricardo Branco
Modified: 2024-05-10 05:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)