• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:mref

60  * @mref:	starting mft record number to read
64 * Read @count mft records starting at @mref from volume @vol into buffer
78 int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
84 ntfs_log_trace("inode %llu\n", (unsigned long long)MREF(mref));
89 b, (long long)count, (unsigned long long)MREF(mref));
92 m = MREF(mref);
119 * @mref: starting mft record number to write
123 * Write @count mft records starting at @mref from data buffer @b to volume
140 int ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref,
152 m = MREF(mref);
209 int ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref,
217 (unsigned long long)MREF(mref), *(le32 *)m);
223 "(%u <> %u)\n", (unsigned long long)MREF(mref),
232 (unsigned long long)MREF(mref));
246 * @mref: mft reference specifying mft record to read
250 * Read a FILE record from the mft of @vol from the storage medium. @mref
264 * and for having a matching sequence number (if MSEQNO(*@mref) != 0).
274 int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
291 if (ntfs_mft_record_read(vol, mref, m))
294 if (ntfs_mft_record_check(vol, mref, m))
297 if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number)) {
299 (unsigned long long)MREF(mref), MSEQNO(mref),
317 * @mref: mft reference specifying the mft record number
320 * Layout an empty, unused mft record with the mft reference @mref into the
327 int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref,
341 /* Abort if mref is > 32 bits. */
342 if (MREF(mref) & 0x0000ffff00000000ull) {
353 mrec->mft_record_number = cpu_to_le32(MREF(mref));
397 * @mref: mft reference specifying mft record to format
399 * Format the mft record with the mft reference @mref in $MFT/$DATA, i.e. lay
404 int ntfs_mft_record_format(const ntfs_volume *vol, const MFT_REF mref)
415 if (ntfs_mft_record_layout(vol, mref, m))
418 if (ntfs_mft_record_write(vol, mref, m))