summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2005-10-25 13:45:07 +0000
committerceri <ceri@FreeBSD.org>2005-10-25 13:45:07 +0000
commita4edf83a8d53cfcf9a0f14cd4c2d7ed2a6b06a9f (patch)
treec975c45c6be91c5b83d1b4140bbe6f0f3fac5bf0 /sbin
parentda8bcd86a3e9a84347d573fb5b4b12d5adaab077 (diff)
downloadFreeBSD-src-a4edf83a8d53cfcf9a0f14cd4c2d7ed2a6b06a9f.zip
FreeBSD-src-a4edf83a8d53cfcf9a0f14cd4c2d7ed2a6b06a9f.tar.gz
gmirror.8:
Note the default balancing algorithm and stripe size. geom_mirror.c: Slightly friendlier error message. Reviewed by: pjd
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/class/mirror/geom_mirror.c2
-rw-r--r--sbin/geom/class/mirror/gmirror.84
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 74be6e5..00afc28 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 e789c92..1c021ef 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.
OpenPOWER on IntegriCloud