Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv7942
Modified Files:
disk_io.h
Log Message:
Cleanup and fixes.
Index: disk_io.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/disk_io.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** disk_io.h 2001/01/26 00:34:35 1.4
--- disk_io.h 2001/03/26 04:30:27 1.5
***************
*** 147,180 ****
int put_clusters(ntfs_volume *vol, const __u8 *buf, const __s64 lcn, int count);
! /**
! * get_mft_records - read records from the mft
! * @vol: volume to read from
! * @buf: output data buffer
! * @mftrec: starting mft record number
! * @count: number of mft records to read
! *
! * Read @count mft records starting at @mftrec from volume @vol into buffer
! * @buf. Return @count on success or -ERRNO on error, where ERRNO is the error
! * code. This function will do the error reporting so caller really only needs
! * to check for sucess / failure.
! *
! * NOTE: @buf has to be at least of size @count * vol->MftRecordSize.
! */
! int get_mft_records(const ntfs_volume *vol, __u8 *buf, const __s64 mftrec,
! const int count);
/**
* put_mft_record - write a record to the mft
* @vol: volume to write to
* @buf: data buffer containing the mft record to write
! * @mftrec: mft record number to write to
*
! * Write mft record @mftrec from buffer @buf to volume @vol. Return 1 on
* success or -ERRNO on error, where ERRNO is the error code. This function
* will do the error reporting so caller really only needs to check for sucess
* / failure.
*/
! int put_mft_record(ntfs_volume *vol, const __u8 *buf, const __s64 mftrec);
!
#endif /* defined DISK_IO_H */
--- 147,172 ----
int put_clusters(ntfs_volume *vol, const __u8 *buf, const __s64 lcn, int count);
! int get_mft_records(const ntfs_volume *vol, __u8 *buf,
! const MFT_REFERENCE *mref, const int count);
+ extern __inline__ int get_mft_record(const ntfs_volume *vol, __u8 *buf,
+ const MFT_REFERENCE *mref);
+
+ int read_file_record(const ntfs_volume *vol, const MFT_REFERENCE *mref,
+ MFT_RECORD **mrec, ATTR_RECORD **attr);
+
/**
* put_mft_record - write a record to the mft
* @vol: volume to write to
* @buf: data buffer containing the mft record to write
! * @mref: mft record number to write to
*
! * Write mft record @mref from buffer @buf to volume @vol. Return 1 on
* success or -ERRNO on error, where ERRNO is the error code. This function
* will do the error reporting so caller really only needs to check for sucess
* / failure.
*/
! int put_mft_record(ntfs_volume *vol, const __u8 *buf,
! const MFT_REFERENCE *mref);
#endif /* defined DISK_IO_H */
|