Lines Matching refs:mref

63  * @mref:	starting mft record number to read
67 * Read @count mft records starting at @mref from volume @vol into buffer
81 int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
87 ntfs_log_trace("inode %llu\n", (unsigned long long)MREF(mref));
92 b, (long long)count, (unsigned long long)MREF(mref));
95 m = MREF(mref);
122 * @mref: starting mft record number to write
126 * Write @count mft records starting at @mref from data buffer @b to volume
143 int ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref,
155 m = MREF(mref);
212 int ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref,
221 (unsigned long long)MREF(mref),
228 "(%u <> %u)\n", (unsigned long long)MREF(mref),
237 (unsigned long long)MREF(mref));
251 * @mref: mft reference specifying mft record to read
255 * Read a FILE record from the mft of @vol from the storage medium. @mref
269 * and for having a matching sequence number (if MSEQNO(*@mref) != 0).
279 int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
296 if (ntfs_mft_record_read(vol, mref, m))
299 if (ntfs_mft_record_check(vol, mref, m))
302 if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number)) {
304 (unsigned long long)MREF(mref), MSEQNO(mref),
322 * @mref: mft reference specifying the mft record number
325 * Layout an empty, unused mft record with the mft reference @mref into the
332 int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref,
346 /* Abort if mref is > 32 bits. */
347 if (MREF(mref) & 0x0000ffff00000000ull) {
358 mrec->mft_record_number = cpu_to_le32(MREF(mref));
402 * @mref: mft reference specifying mft record to format
404 * Format the mft record with the mft reference @mref in $MFT/$DATA, i.e. lay
409 int ntfs_mft_record_format(const ntfs_volume *vol, const MFT_REF mref)
420 if (ntfs_mft_record_layout(vol, mref, m))
423 if (ntfs_mft_record_write(vol, mref, m))