Lines Matching refs:mref

58  * @mref:	starting mft record number to read
62 * Read @count mft records starting at @mref from volume @vol into buffer
76 int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
82 ntfs_log_trace("Entering for inode 0x%llx.\n", MREF(mref));
87 m = MREF(mref);
112 * @mref: starting mft record number to write
116 * Write @count mft records starting at @mref from data buffer @b to volume
133 int ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref,
141 ntfs_log_trace("Entering for inode 0x%llx.\n", MREF(mref));
146 m = MREF(mref);
202 * @mref: mft reference specifying mft record to read
206 * Read a FILE record from the mft of @vol from the storage medium. @mref
220 * and for having a matching sequence number (if MSEQNO(*@mref) != 0).
230 int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
247 if (ntfs_mft_record_read(vol, mref, m)) {
253 if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number))
275 * @mref: mft reference specifying the mft record number
278 * Layout an empty, unused mft record with the mft reference @mref into the
285 int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref,
298 /* Abort if mref is > 32 bits. */
299 if (MREF(mref) & 0x0000ffff00000000ull) {
310 mrec->mft_record_number = cpu_to_le32(MREF(mref));
354 * @mref: mft reference specifying mft record to format
356 * Format the mft record with the mft reference @mref in $MFT/$DATA, i.e. lay
361 int ntfs_mft_record_format(const ntfs_volume *vol, const MFT_REF mref)
373 if (ntfs_mft_record_layout(vol, mref, m)) {
379 if (ntfs_mft_record_write(vol, mref, m)) {