aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2018-12-16 18:10:55 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2018-12-16 18:10:55 +0000
commit96a3750174c7fdb4d2d2889e4ea4bd3e8aac4c3e (patch)
tree1bd1c46852a3ffbdf00ae2715823830df60eb735 /sbin/mdconfig
parent1309bed8397f547fb94c529ff071a28b675c86a6 (diff)
downloadsrc-96a3750174c7fdb4d2d2889e4ea4bd3e8aac4c3e.tar.gz
src-96a3750174c7fdb4d2d2889e4ea4bd3e8aac4c3e.zip
Make (no)ro an alias for (no)readonly
Notes
Notes: svn path=/head/; revision=342152
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 933d448fde32..4f7659cb66f6 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"))