patch-2.4.0-test3 linux/fs/partitions/ultrix.c
Next file: linux/fs/partitions/ultrix.h
Previous file: linux/fs/partitions/msdos.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sun Jul 9 22:21:41 2000
- Orig file:
v2.4.0-test2/linux/fs/partitions/ultrix.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.4.0-test2/linux/fs/partitions/ultrix.c linux/fs/partitions/ultrix.c
@@ -14,9 +14,10 @@
#include "check.h"
-static int ultrix_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
+int ultrix_partition(struct gendisk *hd, kdev_t dev,
+ unsigned long first_sector, int first_part_minor)
{
- int i, minor = current_minor;
+ int i;
struct buffer_head *bh;
struct ultrix_disklabel {
s32 pt_magic; /* magic no. indicating part. info exits */
@@ -44,9 +45,9 @@
- sizeof(struct ultrix_disklabel));
if (label->pt_magic == PT_MAGIC && label->pt_valid == PT_VALID) {
- for (i=0; i<8; i++, minor++)
+ for (i=0; i<8; i++, first_part_minor++)
if (label->pt_part[i].pi_nblocks)
- add_gd_partition(hd, minor,
+ add_gd_partition(hd, first_part_minor,
label->pt_part[i].pi_blkoff,
label->pt_part[i].pi_nblocks);
brelse(bh);
@@ -57,4 +58,3 @@
return 0;
}
}
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)