summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid/md_jmicron.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/md_jmicron.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/md_jmicron.c')
-rw-r--r--sys/geom/raid/md_jmicron.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/raid/md_jmicron.c b/sys/geom/raid/md_jmicron.c
index 3292171..47b2bea 100644
--- a/sys/geom/raid/md_jmicron.c
+++ b/sys/geom/raid/md_jmicron.c
@@ -132,6 +132,7 @@ static struct g_raid_md_class g_raid_md_jmicron_class = {
"JMicron",
g_raid_md_jmicron_methods,
sizeof(struct g_raid_md_jmicron_object),
+ .mdc_enable = 1,
.mdc_priority = 100
};
@@ -1581,4 +1582,4 @@ g_raid_md_free_jmicron(struct g_raid_md_object *md)
return (0);
}
-G_RAID_MD_DECLARE(g_raid_md_jmicron);
+G_RAID_MD_DECLARE(jmicron, "JMicron");
OpenPOWER on IntegriCloud