summaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-20 03:11:33 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-20 03:11:33 -0800
commit74ebb0066d038bb9792d76ee005de3e8f60c1085 (patch)
tree4bf67bcd096746a96fcc0f6c3063473e7c000771 /include/linux/raid
parentedd011045dadc70d9c389040f750896ee9f12630 (diff)
[PATCH] RAID-6
From: "H. Peter Anvin" <hpa@zytor.com> RAID6 implementation. See Kconfig help for usage details. The next release of `mdadm' has raid6 userspace support.
Diffstat (limited to 'include/linux/raid')
-rw-r--r--include/linux/raid/md_k.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index c9466321a2b2..411ca178ea05 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -23,7 +23,8 @@
#define TRANSLUCENT 5UL
#define HSM 6UL
#define MULTIPATH 7UL
-#define MAX_PERSONALITY 8UL
+#define RAID6 8UL
+#define MAX_PERSONALITY 9UL
#define LEVEL_MULTIPATH (-4)
#define LEVEL_LINEAR (-1)
@@ -41,6 +42,7 @@ static inline int pers_to_level (int pers)
case RAID0: return 0;
case RAID1: return 1;
case RAID5: return 5;
+ case RAID6: return 6;
}
BUG();
return MD_RESERVED;
@@ -57,6 +59,7 @@ static inline int level_to_pers (int level)
case 1: return RAID1;
case 4:
case 5: return RAID5;
+ case 6: return RAID6;
}
return MD_RESERVED;
}