Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2018 18:10:55 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342152 - head/sbin/mdconfig
Message-ID:  <201812161810.wBGIAtU6034168@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812161810.wBGIAtU6034168>