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

Reply via email to