]> git.neil.brown.name Git - lafs-utils.git/commitdiff
Introduce new Verify modes for multi-device writing.
authorNeilBrown <neilb@suse.de>
Wed, 4 May 2011 05:18:41 +0000 (15:18 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 4 May 2011 05:18:41 +0000 (15:18 +1000)
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 <neilb@suse.de>
include/lafs/layout.h

index 2e7fb633ae91a5a671e3e3652234713022cb2693..77f69fc6f69d8ffc86cc661d07544a039e74f1b7 100644 (file)
@@ -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 */