kernel-ark/include/linux/raid
NeilBrown 2604b703b6 [PATCH] md: remove personality numbering from md
md supports multiple different RAID level, each being implemented by a
'personality' (which is often in a separate module).

These personalities have fairly artificial 'numbers'.  The numbers
are use to:
 1- provide an index into an array where the various personalities
    are recorded
 2- identify the module (via an alias) which implements are particular
    personality.

Neither of these uses really justify the existence of personality numbers.
The array can be replaced by a linked list which is searched (array lookup
only happens very rarely).  Module identification can be done using an alias
based on level rather than 'personality' number.

The current 'raid5' modules support two level (4 and 5) but only one
personality.  This slight awkwardness (which was handled in the mapping from
level to personality) can be better handled by allowing raid5 to register 2
personalities.

With this change in place, the core md module does not need to have an
exhaustive list of all possible personalities, so other personalities can be
added independently.

This patch also moves the check for chunksize being non-zero into the ->run
routines for the personalities that need it, rather than having it in core-md.
 This has a side effect of allowing 'faulty' and 'linear' not to have a
chunk-size set.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-06 08:34:06 -08:00
..
bitmap.h [PATCH] md: make md on-disk bitmaps not host-endian 2005-11-09 07:56:38 -08:00
linear.h [PATCH] md: support md/linear array with components greater than 2 terabytes. 2005-09-09 16:39:10 -07:00
md_k.h [PATCH] md: remove personality numbering from md 2006-01-06 08:34:06 -08:00
md_p.h [PATCH] md: allow md to load a superblock with feature-bit '1' set 2005-09-09 16:39:11 -07:00
md_u.h [PATCH] md: optimised resync using Bitmap based intent logging 2005-06-21 19:07:43 -07:00
md.h [PATCH] md: remove personality numbering from md 2006-01-06 08:34:06 -08:00
multipath.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
raid0.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
raid1.h [PATCH] md: handle errors when read-only 2006-01-06 08:34:04 -08:00
raid5.h [PATCH] md: tidy up raid5/6 hash table code 2006-01-06 08:34:06 -08:00
raid10.h [PATCH] md: raid10 read-error handling - resync and read-only 2006-01-06 08:34:05 -08:00
xor.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00