On Thu, 5 Nov 1998, Jorj Bauer wrote:
> It looks like the head of md_k.h has an error, though. Presumably, the
> default should return -4, not -3:
>
> static inline int pers_to_level (int pers)
> {
> switch (pers) {
> case LVM: return -3;
> case TRANSLUCENT: return -2;
> case LINEAR: return -1;
> case RAID0: return 0;
> case RAID1: return 1;
> case RAID5: return 5;
> }
> return -3;
> }
>
> Or is it intentionally defaulting to LVM?
it's a bug. But fortunately pers_to_level() is currently unused, but
i've changed it to panic anyway.
-- mingo
- Success report: RAID-0,1,4,5 patch 1998.12.14, 2.0.36/2... David Harris
- [patch 1998.12.15] (was: Re: Success report: RAID-... MOLNAR Ingo
- Re: Success report: RAID-0,1,4,5 patch 1998.12.14,... Dan Hollis
- Re: Success report: RAID-0,1,4,5 patch 1998.12... MOLNAR Ingo
- Re: Success report: RAID-0,1,4,5 patch 199... Osma Ahvenlampi
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90, 1998.11... John Lellis
- Re: RELEASE: RAID-0,1,4,5 and LVM version 0.90, 19... Eric B. Sobalvarro
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90, 19... MOLNAR Ingo
- Re: RELEASE: RAID-0,1,4,5 and LVM version 0.90... Jorj Bauer
- Re: RELEASE: RAID-0,1,4,5 and LVM version ... MOLNAR Ingo
- Re: RELEASE: RAID-0,1,4,5 and LVM version ... MOLNAR Ingo
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90, 19... Rob Vanderhoff
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90... Gary Allpike
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90... MOLNAR Ingo
- RE: RELEASE: RAID-0,1,4,5 and LVM version 0.90, 1998.11... John Lellis
