Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/test
In directory usw-pr-cvs1:/tmp/cvs-serv31000/test
Modified Files:
Makefile.in drive.c
Log Message:
fixed test prog to mimic the kernel correctly
Index: Makefile.in
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/Makefile.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -U2 -r1.3 -r1.4
--- Makefile.in 2001/06/19 11:00:42 1.3
+++ Makefile.in 2001/06/20 03:38:10 1.4
@@ -3,5 +3,5 @@
SRC = drive.c
OBJ = drive.o
-DEP = ../partitions.o
+DEP = ../linux/fs/partitions/partitions.o
OUT = drive
Index: drive.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/test/drive.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -U2 -r1.4 -r1.5
--- drive.c 2001/06/19 02:40:50 1.4
+++ drive.c 2001/06/20 03:38:10 1.5
@@ -83,8 +83,8 @@
long long offset;
- minor = dev & 255;
+ minor = MINOR (dev);
offset = hd[minor].start_sect;
- offset += block;
offset <<= 9;
+ offset += (block * size);
bh = malloc (sizeof (*bh));
@@ -97,5 +97,5 @@
if (lseek (device, offset, SEEK_SET) < 0)
{
- printf ("lseek to %lld failed\n", offset);
+ printf ("lseek to %lld failed\n", offset);
free (bh);
bh = NULL;
|