summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/mdconfig/mdconfig.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 0fb47bc..db3a733 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -137,12 +137,16 @@ main(int argc, char **argv)
mdio.md_options |= MD_FORCE;
else if (!strcmp(optarg, "noforce"))
mdio.md_options &= ~MD_FORCE;
+ else if (!strcmp(optarg, "readonly"))
+ mdio.md_options |= MD_READONLY;
+ else if (!strcmp(optarg, "noreadonly"))
+ mdio.md_options &= ~MD_READONLY;
else if (!strcmp(optarg, "reserve"))
mdio.md_options |= MD_RESERVE;
else if (!strcmp(optarg, "noreserve"))
mdio.md_options &= ~MD_RESERVE;
else
- errx(1, "Unknown option.");
+ errx(1, "Unknown option: %s.", optarg);
break;
case 'S':
if (cmdline != 2)
OpenPOWER on IntegriCloud