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"))
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to