From 2be3ec445865db493799b24e601c24b57d060ad2 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 4 May 2011 15:18:41 +1000 Subject: [PATCH] Introduce new Verify modes for multi-device writing. VerifyDevNext clusters are verified by the next header on the same device. VerifyDevNext2 by the next-but-one header on the same device. Signed-off-by: NeilBrown --- include/lafs/layout.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/lafs/layout.h b/include/lafs/layout.h index 2e7fb63..77f69fc 100644 --- a/include/lafs/layout.h +++ b/include/lafs/layout.h @@ -117,6 +117,12 @@ struct cluster_head { #define VerifyNext 1 /* if next head is valid, this cluster is */ #define VerifyNext2 2 /* if next 2 heads are valid, this cluster is */ #define VerifySum 3 /* maybe some sort of MIC is in _data */ +#define VerifyDevNext 4 /* If next head on this device is valud, this + * cluster is. + */ +#define VerifyDevNext2 5 /* if next 2 heads on this device are valid, + * this cluster is. + */ struct la_inode { /* 16 bytes is constant */ -- 2.39.5