/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 45 usa_count == 1 + (size / NTFS_BLOCK_SIZE) && 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 75 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn() 77 if (!is_valid_record(size, usa_ofs, usa_count)) { in ntfs_mst_post_read_fixup_warn() 85 (unsigned int)usa_count); in ntfs_mst_post_read_fixup_warn() 106 while (--usa_count) { in ntfs_mst_post_read_fixup_warn() 117 usa_ofs, usa_count, *data_pos, usn); in ntfs_mst_post_read_fixup_warn() 124 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn() [all …]
|
D | logfile.c | 60 u16 ra_ofs, usa_count, usa_ofs, usa_end = 0; in ntfs_check_restart_page_header() local 108 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 113 usa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS); in ntfs_check_restart_page_header() 114 if (usa_count != le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 121 usa_end = usa_ofs + usa_count * sizeof(u16); in ntfs_check_restart_page_header() 401 > (u32)(le16_to_cpu(rp->usa_count) - 1)*NTFS_BLOCK_SIZE) in ntfs_check_and_load_restart_page() 429 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page()
|
D | mft.c | 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() 449 (le16_to_cpu(mrec->usa_count) << 1) + 7) & ~7); in ntfs_mft_record_layout()
|
D | index.c | 918 ib->usa_count = cpu_to_le16(ib_size / NTFS_BLOCK_SIZE + 1); in ntfs_ib_alloc() 926 le16_to_cpu(ib->usa_count) * 2 + 7) & ~7); 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 594 usa_count = le16_to_cpu(mft_rec->usa_count); in check_file_record() 598 if (assert_u32_lesseq(usa_ofs+usa_count, attrs_offset, in check_file_record() 619 if (assert_u32_equal(usa_count-1, buflen/NTFS_BLOCK_SIZE, "USA length")) in check_file_record() 621 for (i=1;i<usa_count;i++) { in check_file_record()
|
D | ntfsdump_logfile.c | 317 le16_to_cpu(rstr->usa_count) * sizeof(u16); in restart_header_sanity() 318 if (page_size / NTFS_BLOCK_SIZE + 1 != le16_to_cpu(rstr->usa_count)) in restart_header_sanity() 355 ntfs_log_info("usa_count = %u (0x%x)\n", le16_to_cpu(rstr->usa_count), in dump_restart_areas_header() 356 le16_to_cpu(rstr->usa_count)); in dump_restart_areas_header()
|
D | ntfsmftalloc.c | 230 ntfs_log_info("Update sequence array size = %u\n", le16_to_cpu(m->usa_count)); in dump_mft_record()
|
D | ntfsinfo.c | 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() 2340 2 * le16_to_cpu(mrec->usa_count), in ntfs_dump_inode_general_info()
|
D | ntfstruncate.c | 641 printf("Update sequence array size = %u\n", le16_to_cpu(m->usa_count)); in dump_mft_record()
|
D | ntfsresize.c | 4004 int usa_count; in minimal_record() local 4010 usa_count = expand->vol->mft_record_size / NTFS_BLOCK_SIZE + 1; in minimal_record() 4011 mrec->usa_count = cpu_to_le16(usa_count); in minimal_record() 4012 bytes_in_use = (sizeof(MFT_RECORD) + 2*usa_count + 7) & -8; in minimal_record()
|
D | ntfsrecover.c | 228 nusa = le16_to_cpu(record->usa_count); in replaceusa() 2395 (int)le16_to_cpu(rph->usa_count)); in showheadrcrd() 2725 (int)le16_to_cpu(rest->usa_count)); in showrest()
|
D | mkntfs.c | 2487 ia_val->usa_count = cpu_to_le16(index_block_size / in upgrade_to_large_index() 2490 ia_val->usa_count = const_cpu_to_le16(1); in upgrade_to_large_index() 2506 le16_to_cpu(ia_val->usa_count) * 2 + 7) & ~7); in upgrade_to_large_index()
|
D | ntfswipe.c | 1034 rec->usa_count = cpu_to_le16((u16) usa_size); in wipe_mft()
|
D | playlog.c | 1801 indx->usa_count = const_cpu_to_le16(9); in create_indx()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | logfile.h | 73 /* 6*/ le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member 317 le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member
|
D | layout.h | 196 le16 usa_count; /* Number of le16 sized entries in the usa member 350 le16 usa_count; /* See NTFS_RECORD definition above. */ member 425 le16 usa_count; /* See NTFS_RECORD definition above. */ member 2157 le16 usa_count; /* See NTFS_RECORD definition. */ member
|
/third_party/e2fsprogs/lib/blkid/ |
D | probe.h | 472 __u16 usa_count; member
|