summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid/tr_raid1.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-09-13 13:27:09 +0000
committermav <mav@FreeBSD.org>2012-09-13 13:27:09 +0000
commitdb9e01aca9af40e4b56657bc713041a28462e06b (patch)
tree0ff95415709412d6c621a94ef09cd40e80d7600e /sys/geom/raid/tr_raid1.c
parent10608e7d855a9c973b57055bfc2e87284c68ce9e (diff)
downloadFreeBSD-src-db9e01aca9af40e4b56657bc713041a28462e06b.zip
FreeBSD-src-db9e01aca9af40e4b56657bc713041a28462e06b.tar.gz
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that should be ignored, especially during boot. MFC after: 3 days
Diffstat (limited to 'sys/geom/raid/tr_raid1.c')
-rw-r--r--sys/geom/raid/tr_raid1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/geom/raid/tr_raid1.c b/sys/geom/raid/tr_raid1.c
index 02527f2..d8bc236 100644
--- a/sys/geom/raid/tr_raid1.c
+++ b/sys/geom/raid/tr_raid1.c
@@ -42,9 +42,7 @@ __FBSDID("$FreeBSD$");
#include "geom/raid/g_raid.h"
#include "g_raid_tr_if.h"
-SYSCTL_DECL(_kern_geom_raid);
-static SYSCTL_NODE(_kern_geom_raid, OID_AUTO, raid1, CTLFLAG_RW, 0,
- "RAID1 parameters");
+SYSCTL_DECL(_kern_geom_raid_raid1);
#define RAID1_REBUILD_SLAB (1 << 20) /* One transation in a rebuild */
static int g_raid1_rebuild_slab = RAID1_REBUILD_SLAB;
@@ -131,6 +129,7 @@ static struct g_raid_tr_class g_raid_tr_raid1_class = {
"RAID1",
g_raid_tr_raid1_methods,
sizeof(struct g_raid_tr_raid1_object),
+ .trc_enable = 1,
.trc_priority = 100
};
@@ -996,4 +995,4 @@ g_raid_tr_free_raid1(struct g_raid_tr_object *tr)
return (0);
}
-G_RAID_TR_DECLARE(g_raid_tr_raid1);
+G_RAID_TR_DECLARE(raid1, "RAID1");
OpenPOWER on IntegriCloud