From: NeilBrown Date: Wed, 4 May 2011 05:18:41 +0000 (+1000) Subject: Introduce new Verify modes for multi-device writing. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=2be3ec445865db493799b24e601c24b57d060ad2;p=lafs-utils.git 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 --- 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 */