diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-01-20 03:11:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-01-20 03:11:33 -0800 |
| commit | 74ebb0066d038bb9792d76ee005de3e8f60c1085 (patch) | |
| tree | 4bf67bcd096746a96fcc0f6c3063473e7c000771 /include/linux/raid | |
| parent | edd011045dadc70d9c389040f750896ee9f12630 (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.h | 5 |
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; } |
