summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid/md_promise.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_promise.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_promise.c')
-rw-r--r--sys/geom/raid/md_promise.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c
index 1c93389..6dc0916 100644
--- a/sys/geom/raid/md_promise.c
+++ b/sys/geom/raid/md_promise.c
@@ -171,6 +171,7 @@ static struct g_raid_md_class g_raid_md_promise_class = {
"Promise",
g_raid_md_promise_methods,
sizeof(struct g_raid_md_object),
+ .mdc_enable = 1,
.mdc_priority = 100
};
@@ -1967,4 +1968,4 @@ g_raid_md_free_promise(struct g_raid_md_object *md)
return (0);
}
-G_RAID_MD_DECLARE(g_raid_md_promise);
+G_RAID_MD_DECLARE(promise, "Promise");
OpenPOWER on IntegriCloud