Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions
In directory usw-pr-cvs1:/tmp/cvs-serv1349/linux/fs/partitions
Modified Files:
ldm.c
Log Message:
fixed up the offset, created dummy partition for VMDB
Index: ldm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions/ldm.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -U2 -r1.1.1.1 -r1.2
--- ldm.c 2001/06/16 20:29:39 1.1.1.1
+++ ldm.c 2001/06/17 13:46:16 1.2
@@ -40,5 +40,5 @@
{
__u64 value = 0;
- int length = 0;
+ int length;
int i;
@@ -392,5 +392,5 @@
printk (" %s", vb.name);
- hd->part[minor].start_sect = vb.start_sector;
+ hd->part[minor].start_sect = vb.start_sector + ph1.log_disk_start;
hd->part[minor].nr_sects = vb.num_sectors;
minor++;
@@ -399,4 +399,8 @@
}
}
+
+ minor = ((minor + hd->max_p) & ~(hd->max_p - 1)) - 1; /* round up */
+ hd->part[minor].start_sect = ph1.config_start;
+ hd->part[minor].nr_sects = ph1.config_size;
printk (" >\n");
|