Lines Matching defs:mft
80 #include "mft.h"
92 static const char *MFTFILE = "mft";
756 free(file->mft);
763 * @rec: the mft record of the possible parent
910 ctx = ntfs_attr_get_search_ctx(NULL, file->mft);
995 ctx = ntfs_attr_get_search_ctx(NULL, file->mft);
1067 ntfs_attr *mft;
1082 file->mft = malloc(vol->mft_record_size);
1083 if (!file->mft) {
1089 mft = ntfs_attr_open(vol->mft_ni, AT_DATA, AT_UNNAMED, 0);
1090 if (!mft) {
1096 if (ntfs_attr_mst_pread(mft, vol->mft_record_size * record, 1, vol->mft_record_size, file->mft) < 1) {
1098 ntfs_attr_close(mft);
1103 ntfs_attr_close(mft);
1104 mft = NULL;
1106 attr10 = find_first_attribute(AT_STANDARD_INFORMATION, file->mft);
1107 attr20 = find_first_attribute(AT_ATTRIBUTE_LIST, file->mft);
1108 attr90 = find_first_attribute(AT_INDEX_ROOT, file->mft);
1217 if (rl[0].lcn == LCN_RL_NOT_MAPPED) { /* extended mft record */
1672 if (!file || !file->mft) {
1673 ntfs_log_error("Can't read info from mft record %lld.\n", inode);
1696 if (file->mft->flags & MFT_RECORD_IN_USE) {
1697 ntfs_log_error("Record is in use by the mft\n");
1761 if (rl[0].lcn == LCN_RL_NOT_MAPPED) { /* extended mft record */
2019 ntfs_attr *mft;
2040 mft = ntfs_attr_open(vol->mft_ni, AT_DATA, AT_UNNAMED, 0);
2041 if (!mft) {
2071 if (ntfs_attr_pread(mft, vol->mft_record_size * i,
2088 ntfs_attr_close(mft);
2179 /* Handling of copy mft */