Home
last modified time | relevance | path

Searched refs:NTFS_BLOCK_SIZE (Results 1 – 16 of 16) sorted by relevance

/third_party/ntfs-3g/libntfs-3g/
Dmst.c43 return size % NTFS_BLOCK_SIZE == 0 && in is_valid_record()
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()
102 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in ntfs_mst_post_read_fixup_warn()
121 data_pos += NTFS_BLOCK_SIZE/sizeof(u16); in ntfs_mst_post_read_fixup_warn()
125 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in ntfs_mst_post_read_fixup_warn()
134 data_pos += NTFS_BLOCK_SIZE/sizeof(u16); in ntfs_mst_post_read_fixup_warn()
205 data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1; in ntfs_mst_pre_write_fixup()
216 data_pos += NTFS_BLOCK_SIZE/sizeof(le16); in ntfs_mst_pre_write_fixup()
243 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in ntfs_mst_post_write_fixup()
[all …]
Dlogfile.c70 if (logfile_system_page_size < NTFS_BLOCK_SIZE || in ntfs_check_restart_page_header()
71 logfile_log_page_size < NTFS_BLOCK_SIZE || in ntfs_check_restart_page_header()
123 usa_end > NTFS_BLOCK_SIZE - sizeof(u16)) { in ntfs_check_restart_page_header()
185 NTFS_BLOCK_SIZE - sizeof(u16)) { in ntfs_check_restart_area()
199 ra_ofs + ca_ofs > (u16)(NTFS_BLOCK_SIZE - in ntfs_check_restart_area()
401 > (u32)(le16_to_cpu(rp->usa_count) - 1)*NTFS_BLOCK_SIZE) in ntfs_check_and_load_restart_page()
413 if (le32_to_cpu(rp->system_page_size) <= NTFS_BLOCK_SIZE) in ntfs_check_and_load_restart_page()
439 NTFS_BLOCK_SIZE - (int)sizeof(u16)) { in ntfs_check_and_load_restart_page()
530 kaddr = ntfs_malloc(NTFS_BLOCK_SIZE); in ntfs_check_logfile()
545 if (ntfs_attr_pread(log_na, pos, NTFS_BLOCK_SIZE, kaddr) != in ntfs_check_logfile()
[all …]
Ddevice.c334 if (bksize & (bksize - 1) || bksize % NTFS_BLOCK_SIZE) { in ntfs_mst_pread()
391 if (count < 0 || bksize % NTFS_BLOCK_SIZE) { in ntfs_mst_pwrite()
Dwin32_io.c94 #ifndef NTFS_BLOCK_SIZE
95 #define NTFS_BLOCK_SIZE 512 macro
708 fd->geo_sector_size = NTFS_BLOCK_SIZE; in ntfs_device_win32_getgeo()
743 fd->geo_sector_size = NTFS_BLOCK_SIZE; in ntfs_device_win32_getgeo()
760 fd->geo_sector_size = NTFS_BLOCK_SIZE; in ntfs_device_win32_getntgeo()
Dmft.c430 if (vol->mft_record_size >= NTFS_BLOCK_SIZE) in ntfs_mft_record_layout()
432 NTFS_BLOCK_SIZE + 1); in ntfs_mft_record_layout()
1539 if (le16_to_cpu(m->usa_ofs) <= (NTFS_BLOCK_SIZE - 2)) in ntfs_mft_rec_alloc()
1864 if (!(usa_ofs & 1) && (usa_ofs < NTFS_BLOCK_SIZE)) { in ntfs_mft_record_alloc()
Dindex.c794 if (icx->block_size < NTFS_BLOCK_SIZE) { in ntfs_index_lookup()
797 "sector size (%d)", icx->block_size, NTFS_BLOCK_SIZE); in ntfs_index_lookup()
918 ib->usa_count = cpu_to_le16(ib_size / NTFS_BLOCK_SIZE + 1); in ntfs_ib_alloc()
Ddir.c290 if (index_block_size < NTFS_BLOCK_SIZE || in ntfs_inode_lookup_by_name()
1197 if (index_block_size < NTFS_BLOCK_SIZE || in ntfs_readdir()
Dattrib.c2662 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
2718 if (bk_cnt < 0 || bk_size % NTFS_BLOCK_SIZE) {
/third_party/ntfs-3g/ntfsprogs/
Dntfsck.c619 if (assert_u32_equal(usa_count-1, buflen/NTFS_BLOCK_SIZE, "USA length")) in check_file_record()
622 u16 *fixup = (u16*)(buffer+NTFS_BLOCK_SIZE*i-2); // the value at the end of the sector. in check_file_record()
Dntfsdump_logfile.c318 if (page_size / NTFS_BLOCK_SIZE + 1 != le16_to_cpu(rstr->usa_count)) in restart_header_sanity()
327 if (usa_end_ofs > NTFS_BLOCK_SIZE - sizeof(u16)) in restart_header_sanity()
Dntfswipe.c1015 (NTFS_BLOCK_SIZE - sizeof(u16))) in wipe_mft()
Dntfsrecover.c3174 if (system_page_size < NTFS_BLOCK_SIZE || in getlogfiledata()
3175 log_page_size < NTFS_BLOCK_SIZE || in getlogfiledata()
Dmkntfs.c2486 if (index_block_size >= NTFS_BLOCK_SIZE) { in upgrade_to_large_index()
2488 NTFS_BLOCK_SIZE + 1); in upgrade_to_large_index()
Dntfsclone.c1379 offset = NTFS_BLOCK_SIZE >> 1;
Dntfsresize.c4010 usa_count = expand->vol->mft_record_size / NTFS_BLOCK_SIZE + 1; in minimal_record()
/third_party/ntfs-3g/include/ntfs-3g/
Dlayout.h170 #define NTFS_BLOCK_SIZE 512 macro