/third_party/ntfs-3g/libntfs-3g/ |
D | mst.c | 41 is_valid_record(u32 size, u16 usa_ofs, u16 usa_count) in is_valid_record() argument 44 usa_ofs % 2 == 0 && in is_valid_record() 46 usa_ofs + ((u32)usa_count * 2) <= NTFS_BLOCK_SIZE - 2; in is_valid_record() 68 u16 usa_ofs, usa_count, usn; in ntfs_mst_post_read_fixup_warn() local 74 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_post_read_fixup_warn() 77 if (!is_valid_record(size, usa_ofs, usa_count)) { in ntfs_mst_post_read_fixup_warn() 84 (long)size, (int)usa_ofs, in ntfs_mst_post_read_fixup_warn() 90 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in ntfs_mst_post_read_fixup_warn() 117 usa_ofs, usa_count, *data_pos, usn); in ntfs_mst_post_read_fixup_warn() 171 u16 usa_ofs, usa_count, usn; in ntfs_mst_pre_write_fixup() local [all …]
|
D | mft.c | 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() 443 *(le16*)((u8*)mrec + le16_to_cpu(mrec->usa_ofs)) = const_cpu_to_le16(1); in ntfs_mft_record_layout() 448 mrec->attrs_offset = cpu_to_le16((le16_to_cpu(mrec->usa_ofs) + in ntfs_mft_record_layout() 1539 if (le16_to_cpu(m->usa_ofs) <= (NTFS_BLOCK_SIZE - 2)) in ntfs_mft_rec_alloc() 1540 usn = *(le16*)((u8*)m + (le16_to_cpu(m->usa_ofs) & -2)); in ntfs_mft_rec_alloc() 1552 *(le16*)((u8*)m + le16_to_cpu(m->usa_ofs)) = usn; in ntfs_mft_rec_alloc() 1718 u32 usa_ofs; in ntfs_mft_record_alloc() local 1863 usa_ofs = le16_to_cpu(m->usa_ofs); in ntfs_mft_record_alloc() 1864 if (!(usa_ofs & 1) && (usa_ofs < NTFS_BLOCK_SIZE)) { in ntfs_mft_record_alloc() [all …]
|
D | logfile.c | 60 u16 ra_ofs, usa_count, usa_ofs, usa_end = 0; in ntfs_check_restart_page_header() local 120 usa_ofs = le16_to_cpu(rp->usa_ofs); in ntfs_check_restart_page_header() 121 usa_end = usa_ofs + usa_count * sizeof(u16); in ntfs_check_restart_page_header() 122 if (usa_ofs < offsetof(RESTART_PAGE_HEADER, usn) || in ntfs_check_restart_page_header()
|
D | index.c | 917 ib->usa_ofs = const_cpu_to_le16(sizeof(INDEX_BLOCK)); in ntfs_ib_alloc() 920 *(le16 *)((char *)ib + le16_to_cpu(ib->usa_ofs)) = const_cpu_to_le16(1); in ntfs_ib_alloc()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsck.c | 581 u16 usa_count, usa_ofs, attrs_offset, usa; in check_file_record() local 593 usa_ofs = le16_to_cpu(mft_rec->usa_ofs); in check_file_record() 598 if (assert_u32_lesseq(usa_ofs+usa_count, attrs_offset, in check_file_record() 618 usa = *(u16*)(buffer+usa_ofs); // The value that should be at the end of every sector. in check_file_record() 623 …u16 saved_val = *(u16*)(buffer+usa_ofs+2*i); // the actual data value that was saved in the us arr… in check_file_record()
|
D | ntfsdump_logfile.c | 316 usa_end_ofs = le16_to_cpu(rstr->usa_ofs) + in restart_header_sanity() 322 if (le16_to_cpu(rstr->usa_ofs) < offsetof(RESTART_PAGE_HEADER, usn)) in restart_header_sanity() 353 ntfs_log_info("usa_ofs = %u (0x%x)\n", le16_to_cpu(rstr->usa_ofs), in dump_restart_areas_header() 354 le16_to_cpu(rstr->usa_ofs)); in dump_restart_areas_header() 500 if (!memcmp(rstr1, rstr, le16_to_cpu(rstr1->usa_ofs)) && in dump_restart_areas()
|
D | ntfsfix.c | 1059 u16 usa_ofs; in fix_selfloc_conditions() local 1072 usa_ofs = le16_to_cpu(mft1->usa_ofs); in fix_selfloc_conditions() 1073 if (usa_ofs >= 48) in fix_selfloc_conditions() 1088 usa_ofs = le16_to_cpu(mft2->usa_ofs); in fix_selfloc_conditions() 1089 if (usa_ofs >= 48) in fix_selfloc_conditions()
|
D | ntfsmftalloc.c | 228 u = le16_to_cpu(m->usa_ofs); in dump_mft_record()
|
D | ntfsinfo.c | 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() 1884 le16_to_cpu(mrec->usa_ofs))), in ntfs_dump_usa_lsn() 1886 le16_to_cpu(mrec->usa_ofs)))); in ntfs_dump_usa_lsn() 2339 ntfs_dump_bytes((u8 *)mrec, le16_to_cpu(mrec->usa_ofs) + in ntfs_dump_inode_general_info()
|
D | ntfstruncate.c | 639 u = le16_to_cpu(m->usa_ofs); in dump_mft_record()
|
D | ntfsresize.c | 3717 u16 usa_ofs; in copy_mftmirr() local 3735 usa_ofs = le16_to_cpu(expand->mrec->usa_ofs); in copy_mftmirr() 3736 pusn = (le16*)((u8*)expand->mrec + usa_ofs); in copy_mftmirr() 4009 mrec->usa_ofs = const_cpu_to_le16(sizeof(MFT_RECORD)); in minimal_record()
|
D | ntfswipe.c | 1033 rec->usa_ofs = cpu_to_le16(usa_offset); in wipe_mft() 1059 offset = le16_to_cpu(rec->usa_ofs); in wipe_mft()
|
D | ntfsrecover.c | 227 xusa = le16_to_cpu(record->usa_ofs); in replaceusa() 2393 (int)le16_to_cpu(rph->usa_ofs)); in showheadrcrd() 2423 (int)getle16(rph,le16_to_cpu(rph->usa_ofs))); in showheadrcrd() 2723 (int)le16_to_cpu(rest->usa_ofs)); in showrest()
|
D | mkntfs.c | 2485 ia_val->usa_ofs = const_cpu_to_le16(sizeof(INDEX_ALLOCATION)); in upgrade_to_large_index() 2499 *(le16*)((char*)ia_val + le16_to_cpu(ia_val->usa_ofs)) = in upgrade_to_large_index()
|
D | playlog.c | 1800 indx->usa_ofs = const_cpu_to_le16(0x28); in create_indx()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | logfile.h | 69 /* 4*/ le16 usa_ofs; /* See NTFS_RECORD definition in layout.h. member 313 le16 usa_ofs; /* See NTFS_RECORD definition in layout.h. member
|
D | layout.h | 194 le16 usa_ofs; /* Offset to the Update Sequence Array (usa) member 349 le16 usa_ofs; /* See NTFS_RECORD definition above. */ member 424 le16 usa_ofs; /* See NTFS_RECORD definition above. */ member 2156 le16 usa_ofs; /* See NTFS_RECORD definition. */ member
|