]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.10-ideraid.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.10-ideraid.patch
1 --- Linux/fs/partitions/check.c Wed Jul  4 14:00:15 2001
2 +++ linux/fs/partitions/check.c Wed Jul  4 14:02:32 2001
3 @@ -164,6 +164,15 @@
4                         sprintf(buf, "%s/c%dd%dp%d", maj, ctlr, disk, part);
5                 return buf;
6         }
7 +       if (hd->major == ATARAID_MAJOR) {
8 +               int disk = minor >> hd->minor_shift;
9 +               int part = minor & (( 1 << hd->minor_shift) - 1);
10 +               if (part == 0)
11 +                       sprintf(buf, "%s/d%d", maj, disk);
12 +               else
13 +                       sprintf(buf, "%s/d%dp%d", maj, disk, part);
14 +               return buf;
15 +       }
16         if (part)
17                 sprintf(buf, "%s%c%d", maj, unit, part);
18         else
This page took 0.127229 seconds and 3 git commands to generate.