/third_party/ntfs-3g/libntfs-3g/ |
D | mft.c | 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() [all …]
|
D | attrib.c | 422 if (!ni || !ni->vol || !ni->mrec) { in ntfs_attr_open() 1060 (char*)ctx->mrec + vol->mft_record_size) { in ntfs_attr_pread_i() 1977 (char*)ctx->mrec + vol->mft_record_size) { 1984 ctx->mrec)) { 2069 ctx->mrec)) { 2077 ctx->mrec); 2082 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY 2364 ctx->mrec); 2571 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY 2867 offs = p2n(a) - p2n(ctx->mrec); [all …]
|
D | inode.c | 129 free(ni->mrec); in __ntfs_inode_release() 174 if (ntfs_file_record_read(vol, mref, &ni->mrec, NULL)) in ntfs_inode_real_open() 176 if (!(ni->mrec->flags & MFT_RECORD_IN_USE)) { in ntfs_inode_real_open() 187 if (!ni->mrec->base_mft_record) in ntfs_inode_real_open() 519 && !(ni->mrec->flags & MFT_RECORD_IS_4)))) { in ntfs_inode_close() 640 ni->mrec->sequence_number)) { in ntfs_extent_inode_open() 654 if (ntfs_file_record_read(base_ni->vol, le64_to_cpu(mref), &ni->mrec, NULL)) in ntfs_extent_inode_open() 879 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_inode_sync_file_name() 963 if ((ni->mrec->flags & MFT_RECORD_IN_USE) && ni->nr_extents != -1 && in ntfs_inode_sync_in_dir() 973 if ((ni->mrec->flags & MFT_RECORD_IN_USE) && ni->nr_extents != -1 && in ntfs_inode_sync_in_dir() [all …]
|
D | dir.c | 269 if (!dir_ni || !dir_ni->mrec || !uname || uname_len <= 0) { in ntfs_inode_lookup_by_name() 307 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie + in ntfs_inode_lookup_by_name() 879 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_interix_types() 1123 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { in ntfs_readdir() 1156 le16_to_cpu(dir_ni->mrec->sequence_number)), in ntfs_readdir() 1229 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie + in ntfs_readdir() 1696 le16_to_cpu(dir_ni->mrec->sequence_number)); in __ntfs_create() 1712 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in __ntfs_create() 1727 le16_to_cpu(ni->mrec->sequence_number)))) { in __ntfs_create() 1734 ni->mrec->link_count = const_cpu_to_le16(1); in __ntfs_create() [all …]
|
D | volume.c | 271 vol->mft_ni->mrec = mb; in ntfs_mft_load() 999 MFT_RECORD *mrec, *mrec2; in ntfs_device_mount() local 1012 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size); in ntfs_device_mount() 1013 if (mrec->flags & MFT_RECORD_IN_USE) { in ntfs_device_mount() 1014 if (ntfs_is_baad_record(mrec->magic)) { in ntfs_device_mount() 1020 if (!ntfs_is_mft_record(mrec->magic)) { in ntfs_device_mount() 1040 record_size = ntfs_mft_record_get_data_size(mrec); in ntfs_device_mount() 1043 || memcmp(mrec, mrec2, record_size)) { in ntfs_device_mount() 1168 if ((char*)vinf + le32_to_cpu(a->value_length) > (char*)ctx->mrec + in ntfs_device_mount() 1169 le32_to_cpu(ctx->mrec->bytes_in_use) || in ntfs_device_mount() [all …]
|
D | reparse.c | 260 && (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in search_absolute() 264 && ((ni->mrec->flags & MFT_RECORD_IS_DIRECTORY ? isdir : !isdir) in search_absolute() 366 && (ni->mrec->flags ^ curni->mrec->flags) in search_relative() 498 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in valid_reparse_data() 803 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_make_symlink() 948 seqn = ni->mrec->sequence_number; in set_reparse_index() 994 seqn = na->ni->mrec->sequence_number; in remove_reparse_index()
|
D | security.c | 1685 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) { in enter_cache() 1768 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) { in fetch_cache() 2093 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_get_perm() 2193 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_get_posix_acl() 2247 if (ni->mrec->flags in ntfs_get_posix_acl() 2325 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_get_perm() 2470 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) in ntfs_get_owner_mode() 2743 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0); in ntfs_set_inherited_posix() 2892 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0); in ntfs_set_owner_mode() 3101 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0); in ntfs_set_posix_acl() [all …]
|
D | efs.c | 288 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { in ntfs_set_efs_info()
|
D | attrlist.c | 126 mref = MK_LE_MREF(ni->mft_no, le16_to_cpu(ni->mrec->sequence_number)); in ntfs_attrlist_entry_add()
|
D | object_id.c | 149 seqn = ni->mrec->sequence_number; in set_object_id_index()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsresize.c | 210 MFT_RECORD *mrec; /* mft record */ member 896 static ntfs_attr_search_ctx *attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) in attr_get_search_ctx() argument 900 if ((ret = ntfs_attr_get_search_ctx(ni, mrec)) == NULL) in attr_get_search_ctx() 1090 if (ni->mrec->base_mft_record) in build_allocation_bitmap() 1164 if (ni->mrec->base_mft_record) in set_resize_constraints() 1403 if (!ntfs_file_record_read(resize->vol, FILE_MFT, &ni->mrec, NULL)) { in reload_mft() 1407 &ni->extent_nis[xi]->mrec, NULL); in reload_mft() 1565 lemref = resize->ctx->mrec->base_mft_record; in replace_later() 1650 le32_to_cpu(ctx->mrec->bytes_in_use)); in replace_attribute_runlist() 1656 le32_to_cpu(ctx->mrec->bytes_in_use)); in replace_attribute_runlist() [all …]
|
D | utils.c | 877 file = inode->mrec; in utils_is_metadata() 884 rec = find_first_attribute(AT_FILE_NAME, inode->mrec); in utils_is_metadata() 1037 MFT_RECORD *mrec; in mft_next_record() local 1041 mrec = (MFT_RECORD*)NULL; in mft_next_record() 1043 (MFT_REF) ctx->mft_num, &mrec, NULL); in mft_next_record() 1044 if (r || !mrec || !mrec->base_mft_record) in mft_next_record() 1050 mrec->base_mft_record); in mft_next_record() 1056 free (mrec); in mft_next_record() 1060 attr10 = find_first_attribute(AT_STANDARD_INFORMATION, ctx->inode->mrec); in mft_next_record() 1061 attr20 = find_first_attribute(AT_ATTRIBUTE_LIST, ctx->inode->mrec); in mft_next_record() [all …]
|
D | ntfsinfo.c | 1874 static void ntfs_dump_usa_lsn(const char *indent, MFT_RECORD *mrec) in ntfs_dump_usa_lsn() argument 1877 (unsigned)le16_to_cpu(mrec->usa_ofs), in ntfs_dump_usa_lsn() 1878 (unsigned)le16_to_cpu(mrec->usa_ofs)); in ntfs_dump_usa_lsn() 1880 (unsigned)le16_to_cpu(mrec->usa_count), in ntfs_dump_usa_lsn() 1881 (unsigned)le16_to_cpu(mrec->usa_count)); in ntfs_dump_usa_lsn() 1883 (unsigned)le16_to_cpup((le16*)((u8*)mrec + in ntfs_dump_usa_lsn() 1884 le16_to_cpu(mrec->usa_ofs))), in ntfs_dump_usa_lsn() 1885 (unsigned)le16_to_cpup((le16*)((u8*)mrec + in ntfs_dump_usa_lsn() 1886 le16_to_cpu(mrec->usa_ofs)))); in ntfs_dump_usa_lsn() 1888 (unsigned long long)sle64_to_cpu(mrec->lsn)); in ntfs_dump_usa_lsn() [all …]
|
D | ntfsfix.c | 515 MFT_RECORD *mrec, *mrec2; in fix_mftmirr() local 530 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size); in fix_mftmirr() 531 if (mrec->flags & MFT_RECORD_IN_USE) { in fix_mftmirr() 532 if (ntfs_is_baad_record(mrec->magic)) { in fix_mftmirr() 540 if (!ntfs_is_mft_record(mrec->magic)) { in fix_mftmirr() 564 if (!(mrec->flags & MFT_RECORD_IN_USE) && in fix_mftmirr() 565 !ntfs_is_mft_record(mrec->magic)) in fix_mftmirr() 568 if (memcmp(mrec, mrec2, ntfs_mft_record_get_data_size(mrec))) { in fix_mftmirr() 577 use_mirr ? mrec2 : mrec); in fix_mftmirr() 779 static ATTR_RECORD *find_unnamed_attr(MFT_RECORD *mrec, ATTR_TYPES type) in find_unnamed_attr() argument [all …]
|
D | ntfsclone.c | 1330 MFT_RECORD *m = ni->mrec; 1344 MFT_RECORD *m = ni->mrec; 1392 static void wipe_mft(char *mrec, u32 mrecsz, u64 mft_no) argument 1399 ni.mrec = (MFT_RECORD*)mrec; 1402 ntfs_mst_post_read_fixup_warn((NTFS_RECORD*)mrec,mrecsz,FALSE); 1404 if (!(((MFT_RECORD*)mrec)->flags & MFT_RECORD_IN_USE)) { 1408 if (!(ctx = ntfs_attr_get_search_ctx((ntfs_inode*)NULL, (MFT_RECORD*)mrec))) 1425 ntfs_mft_usn_dec((MFT_RECORD*)mrec); 1426 ntfs_mst_pre_write_fixup((NTFS_RECORD*)mrec,mrecsz); 1436 static void wipe_indx(char *mrec, u32 mrecsz) argument [all …]
|
D | ntfswipe.c | 902 if (ni->mrec->base_mft_record) { in wipe_tails() 1274 if (ni->mrec->base_mft_record) { in wipe_directory() 1792 ctx->mrec) != 0) { in destroy_record() 1817 1LL, ctx->mrec) != 0) { in destroy_record() 1830 1LL, ctx->mrec) != 0) { in destroy_record() 1864 1LL, ctx->mrec) != 0) { in destroy_record() 1885 1LL, ctx->mrec) != 0) { in destroy_record() 1899 1LL, ctx->mrec) != 0) { in destroy_record() 1975 1LL, ctx->mrec) != 0) { in destroy_record() 1994 1LL, ctx->mrec) != 0) { in destroy_record()
|
D | ntfsmove.c | 486 rec = find_first_attribute(AT_ATTRIBUTE_LIST, ino->mrec); in dont_move() 492 rec = find_first_attribute(AT_FILE_NAME, ino->mrec); in dont_move() 720 if (resize_nonres_attr(ino->mrec, rec, need_to) < 0) { in move_datarun()
|
D | ntfstruncate.c | 774 dump_mft_record(ni->mrec); in main() 786 dump_mft_record(ni->mrec); in main()
|
D | ntfsmftalloc.c | 350 dump_mft_record(ni->mrec); in main()
|
D | ntfscat.c | 323 attr90 = find_first_attribute(AT_INDEX_ROOT, inode->mrec); in index_get_size()
|
D | ntfscp.c | 965 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { in main() 996 if ((out->mrec->flags & MFT_RECORD_IS_DIRECTORY) && !opts.inode) { in main()
|
D | ntfsls.c | 674 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) { in main()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | mft.h | 65 MFT_RECORD **mrec, ATTR_RECORD **attr); 121 MFT_RECORD *mrec); 131 extern int ntfs_mft_usn_dec(MFT_RECORD *mrec);
|
D | attrib.h | 87 MFT_RECORD *mrec; member 99 MFT_RECORD *mrec);
|
D | inode.h | 108 MFT_RECORD *mrec; /* The actual mft record of the inode. */ member
|