• Home
  • Raw
  • Download

Lines Matching refs:mrec

349 		MFT_RECORD **mrec, ATTR_RECORD **attr)  in ntfs_file_record_read()  argument
353 if (!vol || !mrec) { in ntfs_file_record_read()
355 ntfs_log_perror("%s: mrec=%p", __FUNCTION__, mrec); in ntfs_file_record_read()
359 m = *mrec; in ntfs_file_record_read()
378 *mrec = m; in ntfs_file_record_read()
383 if (m != *mrec) in ntfs_file_record_read()
402 MFT_RECORD *mrec) in ntfs_mft_record_layout() argument
406 if (!vol || !mrec) { in ntfs_mft_record_layout()
408 ntfs_log_perror("%s: mrec=%p", __FUNCTION__, mrec); in ntfs_mft_record_layout()
413 mrec->usa_ofs = cpu_to_le16((sizeof(MFT_RECORD_OLD) + 1) & ~1); in ntfs_mft_record_layout()
421 mrec->usa_ofs = cpu_to_le16((sizeof(MFT_RECORD) + 1) & ~1); in ntfs_mft_record_layout()
426 mrec->reserved = const_cpu_to_le16(0); in ntfs_mft_record_layout()
427 mrec->mft_record_number = cpu_to_le32(MREF(mref)); in ntfs_mft_record_layout()
429 mrec->magic = magic_FILE; in ntfs_mft_record_layout()
431 mrec->usa_count = cpu_to_le16(vol->mft_record_size / in ntfs_mft_record_layout()
434 mrec->usa_count = const_cpu_to_le16(1); in ntfs_mft_record_layout()
443 *(le16*)((u8*)mrec + le16_to_cpu(mrec->usa_ofs)) = const_cpu_to_le16(1); in ntfs_mft_record_layout()
444 mrec->lsn = const_cpu_to_sle64(0ll); in ntfs_mft_record_layout()
445 mrec->sequence_number = const_cpu_to_le16(1); in ntfs_mft_record_layout()
446 mrec->link_count = const_cpu_to_le16(0); in ntfs_mft_record_layout()
448 mrec->attrs_offset = cpu_to_le16((le16_to_cpu(mrec->usa_ofs) + in ntfs_mft_record_layout()
449 (le16_to_cpu(mrec->usa_count) << 1) + 7) & ~7); in ntfs_mft_record_layout()
450 mrec->flags = const_cpu_to_le16(0); in ntfs_mft_record_layout()
455 mrec->bytes_in_use = cpu_to_le32((le16_to_cpu(mrec->attrs_offset) + 8 + in ntfs_mft_record_layout()
457 mrec->bytes_allocated = cpu_to_le32(vol->mft_record_size); in ntfs_mft_record_layout()
458 mrec->base_mft_record = const_cpu_to_le64((MFT_REF)0); in ntfs_mft_record_layout()
459 mrec->next_attr_instance = const_cpu_to_le16(0); in ntfs_mft_record_layout()
460 a = (ATTR_RECORD*)((u8*)mrec + le16_to_cpu(mrec->attrs_offset)); in ntfs_mft_record_layout()
464 memset((u8*)a + 8, 0, vol->mft_record_size - ((u8*)a + 8 - (u8*)mrec)); in ntfs_mft_record_layout()
783 m = ctx->mrec; in ntfs_mft_bitmap_extend_allocation_i()
870 m = ctx->mrec; in ntfs_mft_bitmap_extend_allocation_i()
1132 m = ctx->mrec; in ntfs_mft_data_extend_allocation()
1226 m = ctx->mrec; in ntfs_mft_data_extend_allocation()
1466 if (!ext_ni->mrec->base_mft_record in ntfs_mft_rec_alloc()
1467 && !ext_ni->mrec->link_count) in ntfs_mft_rec_alloc()
1563 ni->mrec = m; in ntfs_mft_rec_alloc()
1572 le16_to_cpu(base_ni->mrec->sequence_number)); in ntfs_mft_rec_alloc()
1888 ni->mrec = m; in ntfs_mft_record_alloc()
1898 le16_to_cpu(base_ni->mrec->sequence_number)); in ntfs_mft_record_alloc()
1983 ni->mrec->flags &= ~MFT_RECORD_IN_USE;
1986 old_seq_no = ni->mrec->sequence_number;
1992 ni->mrec->sequence_number = cpu_to_le16(seq_no);
2026 ni->mrec->flags |= MFT_RECORD_IN_USE;
2027 ni->mrec->sequence_number = old_seq_no;
2039 int ntfs_mft_usn_dec(MFT_RECORD *mrec) argument
2044 if (!mrec) {
2048 usnp = (le16*)((char*)mrec + le16_to_cpu(mrec->usa_ofs));