summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid3/g_raid3.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-02-11 17:42:31 +0000
committerpjd <pjd@FreeBSD.org>2006-02-11 17:42:31 +0000
commitbeaa5fcb4dc63683c0f73e0326cddc7838be2776 (patch)
treeb44f46522b828d12b67cad0028fde949df55fbed /sys/geom/raid3/g_raid3.h
parent392d25e4bc345d6563f9272d1132f57731ee2f15 (diff)
downloadFreeBSD-src-beaa5fcb4dc63683c0f73e0326cddc7838be2776.zip
FreeBSD-src-beaa5fcb4dc63683c0f73e0326cddc7838be2776.tar.gz
- Add kern.geom.raid3.disconnect_on_failure sysctl/tunnable (default to 1
to preserve currect behaviour). When set to 0, components are not disconnected - graid3 will try to still use them (only first error will be logged). This is helpful when we have two broken components, but in different places, so actually all data is available. Such buggy component will be visible in 'graid3 list' output with flag BROKEN. - Never disconnect the last valid component. If we detect errors there we will just pass them up. This wasn't reasonable to deny access to the whole provider because of one broken sector. Prodded by: ru MFC after: 3 days
Diffstat (limited to 'sys/geom/raid3/g_raid3.h')
-rw-r--r--sys/geom/raid3/g_raid3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/raid3/g_raid3.h b/sys/geom/raid3/g_raid3.h
index c7df788..ab97593 100644
--- a/sys/geom/raid3/g_raid3.h
+++ b/sys/geom/raid3/g_raid3.h
@@ -49,6 +49,7 @@
#define G_RAID3_DISK_FLAG_SYNCHRONIZING 0x0000000000000002ULL
#define G_RAID3_DISK_FLAG_FORCE_SYNC 0x0000000000000004ULL
#define G_RAID3_DISK_FLAG_HARDCODED 0x0000000000000008ULL
+#define G_RAID3_DISK_FLAG_BROKEN 0x0000000000000010ULL
#define G_RAID3_DISK_FLAG_MASK (G_RAID3_DISK_FLAG_DIRTY | \
G_RAID3_DISK_FLAG_SYNCHRONIZING | \
G_RAID3_DISK_FLAG_FORCE_SYNC)
OpenPOWER on IntegriCloud