Home
last modified time | relevance | path

Searched refs:usa_count (Results 1 - 16 of 16) sorted by relevance

/third_party/ntfs-3g/libntfs-3g/
H A Dmst.c41 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()
81 " usa_ofs: %d usa_count: %u", 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()
171 u16 usa_ofs, usa_count, usn; ntfs_mst_pre_write_fixup() local
235 u16 usa_count = le16_to_cpu(b->usa_count); ntfs_mst_post_write_fixup() local
[all...]
H A Dlogfile.c60 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()
397 * For safety, make sure this is consistent with the usa_count in ntfs_check_and_load_restart_page()
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()
H A Dmft.c431 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()
436 "Setting usa_count to 1. If Windows chkdsk " in ntfs_mft_record_layout()
449 (le16_to_cpu(mrec->usa_count) << 1) + 7) & ~7); in ntfs_mft_record_layout()
H A Dindex.c918 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/
H A Dntfsck.c581 u16 usa_count, usa_ofs, attrs_offset, usa; in check_file_record() local
591 // check usa_count+offset to update seq <= attrs_offset < in check_file_record()
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()
599 "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()
H A Dntfsdump_logfile.c317 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()
H A Dntfsmftalloc.c230 ntfs_log_info("Update sequence array size = %u\n", le16_to_cpu(m->usa_count)); in dump_mft_record()
H A Dntfstruncate.c641 printf("Update sequence array size = %u\n", le16_to_cpu(m->usa_count)); in dump_mft_record()
H A Dntfsinfo.c1880 (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()
H A Dntfsresize.c4004 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()
H A Dntfsrecover.c228 nusa = le16_to_cpu(record->usa_count); in replaceusa()
1340 /* mftrecsz can be determined from usa_count */ in fixup()
2394 printf("usa_count %04x\n", in showheadrcrd()
2395 (int)le16_to_cpu(rph->usa_count)); in showheadrcrd()
2724 printf("usa_count %04x\n", in showrest()
2725 (int)le16_to_cpu(rest->usa_count)); in showrest()
H A Dmkntfs.c2487 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()
2492 "Setting usa_count to 1. If Windows chkdsk " in upgrade_to_large_index()
2506 le16_to_cpu(ia_val->usa_count) * 2 + 7) & ~7); in upgrade_to_large_index()
H A Dntfswipe.c1034 rec->usa_count = cpu_to_le16((u16) usa_size); in wipe_mft()
H A Dplaylog.c1801 indx->usa_count = const_cpu_to_le16(9); in create_indx()
/third_party/ntfs-3g/include/ntfs-3g/
H A Dlogfile.h73 /* 6*/ le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member
81 of the usa (usa_count) and add it to usa_ofs.
317 le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member
H A Dlayout.h185 * maximum size = usa_ofs + (usa_count * 2) = 510 bytes
189 * (usa_count * 2) has to be less than or equal to 510.
196 le16 usa_count; /* Number of le16 sized entries in the usa member
198 thus the number of fixups is the usa_count
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

Completed in 40 milliseconds