Changes by: antona
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9485
Modified Files:
win32_io.c
Log Message:
Finally fix the win32 write support problems.
Index: win32_io.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/win32_io.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -p -r1.33 -r1.34
--- win32_io.c 3 Jun 2005 10:33:35 -0000 1.33
+++ win32_io.c 6 Jun 2005 14:30:38 -0000 1.34
@@ -42,7 +42,11 @@ struct stat;
struct ntfs_volume;
typedef struct ntfs_volume ntfs_volume;
-#include "config.h"
+#ifndef NTFS_BLOCK_SIZE
+#define NTFS_BLOCK_SIZE 512
+#define NTFS_BLOCK_SIZE_BITS 9
+#endif
+
#include "debug.h"
[...1549 lines suppressed...]
}
}
-static s64 ntfs_device_win32_pread(struct ntfs_device *dev, void *buf,
+static s64 ntfs_device_win32_pread(struct ntfs_device *dev, void *b,
s64 count, s64 offset)
{
- return ntfs_pread(dev, offset, count, buf);
+ return ntfs_pread(dev, offset, count, b);
}
-static s64 ntfs_device_win32_pwrite(struct ntfs_device *dev, const void *buf,
+static s64 ntfs_device_win32_pwrite(struct ntfs_device *dev, const void *b,
s64 count, s64 offset)
{
- return ntfs_pwrite(dev, offset, count, buf);
+ return ntfs_pwrite(dev, offset, count, b);
}
struct ntfs_device_operations ntfs_device_win32_io_ops = {
|