svn commit: r342152 - head/sbin/mdconfig
Poul-Henning Kamp
phk at FreeBSD.org
Sun Dec 16 18:10:56 UTC 2018
Author: phk
Date: Sun Dec 16 18:10:55 2018
New Revision: 342152
URL: https://svnweb.freebsd.org/changeset/base/342152
Log:
Make (no)ro an alias for (no)readonly
Modified:
head/sbin/mdconfig/mdconfig.c
Modified: head/sbin/mdconfig/mdconfig.c
==============================================================================
--- head/sbin/mdconfig/mdconfig.c Sun Dec 16 08:58:14 2018 (r342151)
+++ head/sbin/mdconfig/mdconfig.c Sun Dec 16 18:10:55 2018 (r342152)
@@ -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"))
More information about the svn-src-all
mailing list