Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions
In directory usw-pr-cvs1:/tmp/cvs-serv31000/linux/fs/partitions
Modified Files:
ldm.c
Log Message:
fixed test prog to mimic the kernel correctly
Index: ldm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions/ldm.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -U2 -r1.4 -r1.5
--- ldm.c 2001/06/20 02:55:42 1.4
+++ ldm.c 2001/06/20 03:38:09 1.5
@@ -270,5 +270,5 @@
int j;
int k;
- int minor = first_part_minor + LDM_FIRST_PART;
+ int minor = first_part_minor + LDM_FIRST_PART - 1;
kdev_t devdb;
@@ -301,5 +301,5 @@
if (!(bh = bread (devdb, OFF_PRIVHEAD2, 1024)))
goto end;
- if (!parse_privhead (data = bh->b_data, &ph2))
+ if (!parse_privhead (bh->b_data, &ph2))
goto free;
brelse (bh);
@@ -307,5 +307,5 @@
if (!(bh = bread (devdb, OFF_PRIVHEAD3, 1024)))
goto end;
- if (!parse_privhead (data = bh->b_data + 0x0200, &ph3))
+ if (!parse_privhead (bh->b_data + 0x0200, &ph3))
goto free;
brelse (bh);
@@ -314,5 +314,5 @@
if (!(bh = bread (devdb, OFF_TOCBLOCK1, 1024)))
goto end;
- if (!parse_tocblock (data = bh->b_data + 0x0200, &toc1))
+ if (!parse_tocblock (bh->b_data + 0x0200, &toc1))
goto free;
brelse (bh);
@@ -320,5 +320,5 @@
if (!(bh = bread (devdb, OFF_TOCBLOCK2, 1024)))
goto end;
- if (!parse_tocblock (data = bh->b_data, &toc2))
+ if (!parse_tocblock (bh->b_data, &toc2))
goto free;
brelse (bh);
@@ -326,5 +326,5 @@
if (!(bh = bread (devdb, OFF_TOCBLOCK3, 1024)))
goto end;
- if (!parse_tocblock (data = bh->b_data + 0x0200, &toc3))
+ if (!parse_tocblock (bh->b_data + 0x0200, &toc3))
goto free;
brelse (bh);
@@ -332,5 +332,5 @@
if (!(bh = bread (devdb, OFF_TOCBLOCK4, 1024)))
goto end;
- if (!parse_tocblock (data = bh->b_data, &toc4))
+ if (!parse_tocblock (bh->b_data, &toc4))
goto free;
brelse (bh);
@@ -340,5 +340,5 @@
if (!(bh = bread (devdb, OFF_VMDB, 1024)))
goto end;
- if (!parse_vmdb (data = bh->b_data + 0x200, &vm))
+ if (!parse_vmdb (bh->b_data + 0x200, &vm))
goto end;
|