Lines Matching refs:mft

36 static void ntfs_fill_mft_header(ntfs_u8 *mft, int rec_size, int seq_no,  in ntfs_fill_mft_header()  argument
43 NTFS_PUTU32(mft + 0x00, 0x454c4946); /* FILE */ in ntfs_fill_mft_header()
44 NTFS_PUTU16(mft + 0x04, fixup_ofs); /* Offset to fixup. */ in ntfs_fill_mft_header()
45 NTFS_PUTU16(mft + 0x06, fixup_cnt); /* Number of fixups. */ in ntfs_fill_mft_header()
46 NTFS_PUTU64(mft + 0x08, 0); /* Logical sequence number. */ in ntfs_fill_mft_header()
47 NTFS_PUTU16(mft + 0x10, seq_no); /* Sequence number. */ in ntfs_fill_mft_header()
48 NTFS_PUTU16(mft + 0x12, links); /* Hard link count. */ in ntfs_fill_mft_header()
49 NTFS_PUTU16(mft + 0x14, attr_ofs); /* Offset to attributes. */ in ntfs_fill_mft_header()
50 NTFS_PUTU16(mft + 0x16, flags); /* Flags: 1 = In use, in ntfs_fill_mft_header()
52 NTFS_PUTU32(mft + 0x18, attr_ofs + 8); /* Bytes in use. */ in ntfs_fill_mft_header()
53 NTFS_PUTU32(mft + 0x1c, rec_size); /* Total allocated size. */ in ntfs_fill_mft_header()
54 NTFS_PUTU64(mft + 0x20, 0); /* Base mft record. */ in ntfs_fill_mft_header()
55 NTFS_PUTU16(mft + 0x28, 0); /* Next attr instance. */ in ntfs_fill_mft_header()
56 NTFS_PUTU16(mft + fixup_ofs, 1); /* Fixup word. */ in ntfs_fill_mft_header()
57 NTFS_PUTU32(mft + attr_ofs, (__u32)-1); /* End of attributes marker. */ in ntfs_fill_mft_header()
98 static int ntfs_insert_mft_attributes(ntfs_inode* ino, char *mft, int mftno) in ntfs_insert_mft_attributes() argument
130 it = mft + NTFS_GETU16(mft + 0x14); /* mft->attrs_offset */ in ntfs_insert_mft_attributes()
206 ntfs_u8 *mft, *attr; in parse_attributes() local
217 mft = ntfs_malloc(ino->vol->mft_record_size); in parse_attributes()
218 if (!mft) in parse_attributes()
236 error = ntfs_read_mft_record(ino->vol, mftno, mft); in parse_attributes()
244 ntfs_free(mft); in parse_attributes()
252 mft, /* extension record */ in parse_attributes()
262 ntfs_free(mft); in parse_attributes()
271 ntfs_free(mft); in parse_attributes()
277 ntfs_free(mft); in parse_attributes()
305 ntfs_free(mft); in parse_attributes()
308 ntfs_memcpy(mft2, mft, ino->vol->mft_record_size); in parse_attributes()