From a4edf83a8d53cfcf9a0f14cd4c2d7ed2a6b06a9f Mon Sep 17 00:00:00 2001 From: ceri Date: Tue, 25 Oct 2005 13:45:07 +0000 Subject: [PATCH] gmirror.8: Note the default balancing algorithm and stripe size. geom_mirror.c: Slightly friendlier error message. Reviewed by: pjd --- sbin/geom/class/mirror/geom_mirror.c | 2 +- sbin/geom/class/mirror/gmirror.8 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/geom/class/mirror/geom_mirror.c b/sbin/geom/class/mirror/geom_mirror.c index 74be6e54d05f..00afc289fca9 100644 --- a/sbin/geom/class/mirror/geom_mirror.c +++ b/sbin/geom/class/mirror/geom_mirror.c @@ -195,7 +195,7 @@ mirror_label(struct gctl_req *req) } bal = balance_id(str); if (bal == -1) { - gctl_error(req, "Wrong balance algorithm."); + gctl_error(req, "Invalid balance algorithm."); return; } md.md_balance = bal; diff --git a/sbin/geom/class/mirror/gmirror.8 b/sbin/geom/class/mirror/gmirror.8 index e789c92a75dd..1c021efa17aa 100644 --- a/sbin/geom/class/mirror/gmirror.8 +++ b/sbin/geom/class/mirror/gmirror.8 @@ -138,6 +138,7 @@ Use round-robin algorithm when choosing component to read. .It Cm split Split read requests, which are bigger than or equal to slice size on N pieces, where N is the number of active components. +This is the default balance algorithm. .El .It Fl h Hardcode providers' names in metadata. @@ -148,7 +149,8 @@ When using the .Cm split balance algorithm and an I/O READ request is bigger than or equal to this value, the I/O request will be split into N pieces, where N is the number of active -component. +components. +Defaults to 4096 bytes. .El .It Cm clear Clear metadata on the given providers.