drmadm: no subcommand runs status #22

Merged
toasterson merged 1 commit from drmadm-default-status into main 2026-10-11 14:14:09 +00:00
Owner

drmadm without a subcommand now prints the status, like ipadm (show-addr) and dladm (show-link); drmadm -R root does the same for that root. Unknown subcommands and extra arguments still print the usage and exit 2. Usage text, drmadm(8) and the README are updated.

Tested on oibldofgate: drmadm, drmadm status and drmadm -R / give identical output, exit 0; drmadm bogus and drmadm status extra exit 2; mandoc -T lint clean.

`drmadm` without a subcommand now prints the status, like `ipadm` (show-addr) and `dladm` (show-link); `drmadm -R root` does the same for that root. Unknown subcommands and extra arguments still print the usage and exit 2. Usage text, drmadm(8) and the README are updated. Tested on oibldofgate: `drmadm`, `drmadm status` and `drmadm -R /` give identical output, exit 0; `drmadm bogus` and `drmadm status extra` exit 2; `mandoc -T lint` clean.
drmadm: no subcommand runs status
Some checks failed
ci / check-hosted (pull_request) Failing after 2m58s
ci / kmod-illumos (pull_request) Failing after 9m47s
36bf33bf85
Like ipadm (show-addr) and dladm (show-link), drmadm without a subcommand
now prints its status; "drmadm -R root" does the same for that root.
Unknown subcommands and extra arguments still print the usage and exit 2.
The usage text, drmadm(8) synopsis and Status section, and the README
example show the optional subcommand.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
illumos/illumos-drm!22
No description provided.