From 96a3750174c7fdb4d2d2889e4ea4bd3e8aac4c3e Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 16 Dec 2018 18:10:55 +0000 Subject: [PATCH] Make (no)ro an alias for (no)readonly --- sbin/mdconfig/mdconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 933d448fde3..4f7659cb66f 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -193,6 +193,10 @@ main(int argc, char **argv) mdio.md_options |= MD_READONLY; else if (!strcmp(optarg, "noreadonly")) mdio.md_options &= ~MD_READONLY; + else if (!strcmp(optarg, "ro")) + mdio.md_options |= MD_READONLY; + else if (!strcmp(optarg, "noro")) + mdio.md_options &= ~MD_READONLY; else if (!strcmp(optarg, "reserve")) mdio.md_options |= MD_RESERVE; else if (!strcmp(optarg, "noreserve"))