]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.5-ideraid.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.5-ideraid.patch
1 --- linux/include/linux/major.h~        Wed Jul  4 14:00:15 2001
2 +++ linux/include/linux/major.h Wed Jul  4 14:01:07 2001
3 @@ -118,6 +118,8 @@
4  #define COMPAQ_CISS_MAJOR6      110
5  #define COMPAQ_CISS_MAJOR7      111
6  
7 +#define ATARAID_MAJOR          114
8 +
9  #define DASD_MAJOR      94     /* Official assignations from Peter */
10  
11  #define MDISK_MAJOR     95     /* Official assignations from Peter */
12 --- Linux/fs/partitions/check.c Wed Jul  4 14:00:15 2001
13 +++ linux/fs/partitions/check.c Wed Jul  4 14:02:32 2001
14 @@ -164,6 +164,15 @@
15                         sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, disk, part);
16                 return buf;
17         }
18 +       if (hd->major == ATARAID_MAJOR) {
19 +               int disk = minor >> hd->minor_shift;
20 +               int part = minor & (( 1 << hd->minor_shift) - 1);
21 +               if (part == 0)
22 +                       sprintf(buf, "%s/d%d", maj, disk);
23 +               else
24 +                       sprintf(buf, "%s/d%dp%d", maj, disk, part);
25 +               return buf;
26 +       }
27         if (part)
28                 sprintf(buf, "%s%c%d", maj, unit, part);
29         else
This page took 0.173053 seconds and 3 git commands to generate.