Lines Matching refs:mref

64  * @mref:	starting mft record number to read
68 * Read @count mft records starting at @mref from volume @vol into buffer
82 int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
88 ntfs_log_trace("inode %llu\n", (unsigned long long)MREF(mref));
93 b, (long long)count, (unsigned long long)MREF(mref));
96 m = MREF(mref);
123 * @mref: starting mft record number to write
127 * Write @count mft records starting at @mref from data buffer @b to volume
144 int ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref,
156 m = MREF(mref);
234 int ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref,
246 (unsigned long long)MREF(mref),
253 "(%u <> %u)\n", (unsigned long long)MREF(mref),
261 "(%u > %u)\n", (unsigned long long)MREF(mref),
268 (unsigned long long)MREF(mref));
275 (unsigned long long)MREF(mref));
289 if (!ntfs_attr_inconsistent(a, mref)) {
298 (unsigned long long)MREF(mref));
305 (unsigned long long)MREF(mref));
320 * @mref: mft reference specifying mft record to read
324 * Read a FILE record from the mft of @vol from the storage medium. @mref
338 * and for having a matching sequence number (if MSEQNO(*@mref) != 0).
348 int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
365 if (ntfs_mft_record_read(vol, mref, m))
368 if (ntfs_mft_record_check(vol, mref, m))
371 if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number)) {
373 (unsigned long long)MREF(mref), MSEQNO(mref),
391 * @mref: mft reference specifying the mft record number
394 * Layout an empty, unused mft record with the mft reference @mref into the
401 int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref,
415 /* Abort if mref is > 32 bits. */
416 if (MREF(mref) & 0x0000ffff00000000ull) {
427 mrec->mft_record_number = cpu_to_le32(MREF(mref));
471 * @mref: mft reference specifying mft record to format
473 * Format the mft record with the mft reference @mref in $MFT/$DATA, i.e. lay
478 int ntfs_mft_record_format(const ntfs_volume *vol, const MFT_REF mref)
489 if (ntfs_mft_record_layout(vol, mref, m))
492 if (ntfs_mft_record_write(vol, mref, m))