Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv27644a/include
Modified Files:
mft.h
Log Message:
Rename mft code adding ntfs_ prefix. Change all return values to zero on success. Thanks to mattjf for pointing out the inconsistencies.
Index: mft.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/mft.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -U2 -r1.30 -r1.31
--- mft.h 16 Apr 2002 12:13:53 -0000 1.30
+++ mft.h 20 Apr 2002 01:53:02 -0000 1.31
@@ -28,9 +28,9 @@
#include "endians.h"
-extern __s64 read_mft_records(const ntfs_volume *vol, const MFT_REF mref,
+extern int ntfs_read_mft_records(const ntfs_volume *vol, const MFT_REF mref,
const __s64 count, const MFT_RECORD *b);
/**
- * read_mft_record - read a record from the mft
+ * ntfs_read_mft_record - read a record from the mft
* @vol: volume to read from
* @mref: mft record number to read
@@ -38,5 +38,5 @@
*
* Read the mft record specified by @mref from volume @vol into buffer @b.
- * Return 1 on success or -1 on error, with errno set to the error code.
+ * Return 0 on success or -1 on error, with errno set to the error code.
*
* The read mft record is mst deprotected and is hence ready to use. The caller
@@ -46,18 +46,18 @@
* NOTE: @b has to be at least of size vol->mft_record_size.
*/
-static __inline__ int read_mft_record(const ntfs_volume *vol,
+static __inline__ int ntfs_read_mft_record(const ntfs_volume *vol,
const MFT_REF mref, const MFT_RECORD *b)
{
- return (int)read_mft_records(vol, mref, 1, b);
+ return ntfs_read_mft_records(vol, mref, 1, b);
}
-extern int read_file_record(const ntfs_volume *vol, const MFT_REF mref,
+extern int ntfs_read_file_record(const ntfs_volume *vol, const MFT_REF mref,
MFT_RECORD **mrec, ATTR_RECORD **attr);
-extern __s64 write_mft_records(const ntfs_volume *vol, const MFT_REF mref,
+extern int ntfs_write_mft_records(const ntfs_volume *vol, const MFT_REF mref,
const __s64 count, const MFT_RECORD *b);
/**
- * write_mft_record - write an mft record to disk
+ * ntfs_write_mft_record - write an mft record to disk
* @vol: volume to write to
* @mref: mft record number to write
@@ -65,5 +65,5 @@
*
* Write the mft record specified by @mref from buffer @b to volume @vol.
- * Return 1 on success or -1 on error, with errno set to the error code.
+ * Return 0 on success or -1 on error, with errno set to the error code.
*
* Before the mft record is written, it is mst protected. After the write, it
@@ -73,8 +73,8 @@
* NOTE: @b has to be at least of size vol->mft_record_size.
*/
-static __inline__ int write_mft_record(const ntfs_volume *vol,
+static __inline__ int ntfs_write_mft_record(const ntfs_volume *vol,
const MFT_REF mref, const MFT_RECORD *b)
{
- return (int)write_mft_records(vol, mref, 1, b);
+ return ntfs_write_mft_records(vol, mref, 1, b);
}
|