summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/nop/geom_nop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/geom/class/nop/geom_nop.c')
-rw-r--r--sbin/geom/class/nop/geom_nop.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/sbin/geom/class/nop/geom_nop.c b/sbin/geom/class/nop/geom_nop.c
index c1c16b5..0de2856 100644
--- a/sbin/geom/class/nop/geom_nop.c
+++ b/sbin/geom/class/nop/geom_nop.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
+ * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,9 @@ __FBSDID("$FreeBSD$");
uint32_t lib_version = G_LIB_VERSION;
uint32_t version = G_NOP_VERSION;
-static intmax_t failprob = 0;
+static intmax_t error = -1;
+static intmax_t rfailprob = -1;
+static intmax_t wfailprob = -1;
static intmax_t offset = 0;
static intmax_t secsize = 0;
static intmax_t size = 0;
@@ -46,20 +48,25 @@ static intmax_t size = 0;
struct g_command class_commands[] = {
{ "create", G_FLAG_VERBOSE | G_FLAG_LOADKLD, NULL,
{
- { 'f', "failprob", &failprob, G_TYPE_NUMBER },
+ { 'e', "error", &error, G_TYPE_NUMBER },
{ 'o', "offset", &offset, G_TYPE_NUMBER },
+ { 'r', "rfailprob", &rfailprob, G_TYPE_NUMBER },
{ 's', "size", &size, G_TYPE_NUMBER },
{ 'S', "secsize", &secsize, G_TYPE_NUMBER },
+ { 'w', "wfailprob", &wfailprob, G_TYPE_NUMBER },
G_OPT_SENTINEL
},
- "[-v] [-f failprob] [-o offset] [-s size] [-S secsize] dev ..."
+ "[-v] [-e error] [-o offset] [-r rfailprob] [-s size] [-S secsize] "
+ "[-w wfailprob] dev ..."
},
{ "configure", G_FLAG_VERBOSE, NULL,
{
- { 'f', "failprob", &failprob, G_TYPE_NUMBER },
+ { 'e', "error", &error, G_TYPE_NUMBER },
+ { 'r', "rfailprob", &rfailprob, G_TYPE_NUMBER },
+ { 'w', "wfailprob", &wfailprob, G_TYPE_NUMBER },
G_OPT_SENTINEL
},
- "[-v] [-f failprob] prov ..."
+ "[-v] [-e error] [-r rfailprob] [-w wfailprob] prov ..."
},
{ "destroy", G_FLAG_VERBOSE, NULL,
{
OpenPOWER on IntegriCloud