/third_party/ntfs-3g/libntfs-3g/ |
D | ioctl.c | 97 range[0] = lcn << vol->cluster_size_bits; in fstrim_clusters() 98 range[1] = length << vol->cluster_size_bits; in fstrim_clusters() 233 aligned = (lcn << vol->cluster_size_bits) + granularity - 1; in align_up() 235 return (aligned >> vol->cluster_size_bits); in align_up() 242 aligned = count << vol->cluster_size_bits; in align_down() 244 return (aligned >> vol->cluster_size_bits); in align_down() 356 (u64) (end_lcn-start_lcn) << vol->cluster_size_bits in fstrim() 377 << vol->cluster_size_bits; in fstrim()
|
D | compress.c | 792 start_vcn = (pos & ~cb_size_mask) >> vol->cluster_size_bits; in ntfs_compressed_attr_pread() 800 vol->cluster_size_bits; in ntfs_compressed_attr_pread() 802 nr_cbs = (end_vcn - start_vcn) << vol->cluster_size_bits >> in ntfs_compressed_attr_pread() 847 ofs += vcn << vol->cluster_size_bits; in ntfs_compressed_attr_pread() 913 (vcn << vol->cluster_size_bits) + in ntfs_compressed_attr_pread() 921 (long long)(vcn << vol->cluster_size_bits)); in ntfs_compressed_attr_pread() 997 count = xrl->length << vol->cluster_size_bits; in read_clusters() 998 xpos = xrl->lcn << vol->cluster_size_bits; in read_clusters() 1038 count = xrl->length << vol->cluster_size_bits; in write_clusters() 1039 xpos = xrl->lcn << vol->cluster_size_bits; in write_clusters() [all …]
|
D | attrib.c | 216 if (total + (rl[i].length << vol->cluster_size_bits) >= in ntfs_get_attribute_value() 240 >> vol->cluster_size_bits; in ntfs_get_attribute_value() 244 << vol->cluster_size_bits); in ntfs_get_attribute_value() 261 rl[i].lcn << vol->cluster_size_bits, in ntfs_get_attribute_value() 262 intlth << vol->cluster_size_bits, in ntfs_get_attribute_value() 264 if (r != intlth << vol->cluster_size_bits) { in ntfs_get_attribute_value() 269 vol->cluster_size_bits) { in ntfs_get_attribute_value() 297 r = ntfs_pread(vol->dev, rl[i].lcn << vol->cluster_size_bits, in ntfs_get_attribute_value() 298 rl[i].length << vol->cluster_size_bits, in ntfs_get_attribute_value() 300 if (r != rl[i].length << vol->cluster_size_bits) { in ntfs_get_attribute_value() [all …]
|
D | device.c | 449 br = ntfs_pread(vol->dev, lcn << vol->cluster_size_bits, in ntfs_cluster_read() 450 count << vol->cluster_size_bits, b); in ntfs_cluster_read() 455 return br >> vol->cluster_size_bits; in ntfs_cluster_read() 486 bw = ntfs_pwrite(vol->dev, lcn << vol->cluster_size_bits, in ntfs_cluster_write() 487 count << vol->cluster_size_bits, b); in ntfs_cluster_write() 489 bw = count << vol->cluster_size_bits; in ntfs_cluster_write() 494 return bw >> vol->cluster_size_bits; in ntfs_cluster_write()
|
D | bootsect.c | 258 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in ntfs_boot_sector_parse() 266 ntfs_log_debug("ClusterSizeBits = %u\n", vol->cluster_size_bits); in ntfs_boot_sector_parse() 277 vol->mft_record_size = c << vol->cluster_size_bits; in ntfs_boot_sector_parse() 292 vol->indx_record_size = c << vol->cluster_size_bits; in ntfs_boot_sector_parse()
|
D | runlist.c | 963 vol->cluster_size_bits); in ntfs_mapping_pairs_decompress_i() 1130 vol->cluster_size_bits) <= pos); rl++) in ntfs_rl_pread() 1131 ofs += (rl->length << vol->cluster_size_bits); in ntfs_rl_pread() 1142 vol->cluster_size_bits) - ofs); in ntfs_rl_pread() 1151 to_read = min(count, (rl->length << vol->cluster_size_bits) - in ntfs_rl_pread() 1155 vol->cluster_size_bits) + ofs, to_read, b); in ntfs_rl_pread() 1219 vol->cluster_size_bits) <= pos)) { in ntfs_rl_pwrite() 1220 ofs += (rl->length << vol->cluster_size_bits); in ntfs_rl_pwrite() 1234 vol->cluster_size_bits) - ofs); in ntfs_rl_pwrite() 1242 to_write = min(count, (rl->length << vol->cluster_size_bits) - in ntfs_rl_pwrite() [all …]
|
D | mft.c | 736 vol->cluster_size_bits); in ntfs_mft_bitmap_extend_allocation_i() 1061 (mft_na->allocated_size - 1) >> vol->cluster_size_bits); in ntfs_mft_data_extend_allocation() 1074 min_nr = vol->mft_record_size >> vol->cluster_size_bits; in ntfs_mft_data_extend_allocation() 1078 nr = vol->mft_record_size << 4 >> vol->cluster_size_bits; in ntfs_mft_data_extend_allocation() 1199 mft_na->allocated_size += nr << vol->cluster_size_bits; in ntfs_mft_data_extend_allocation() 1217 mft_na->allocated_size += nr << vol->cluster_size_bits; in ntfs_mft_data_extend_allocation()
|
D | volume.c | 273 l = ntfs_mst_pread(vol->dev, vol->mft_lcn << vol->cluster_size_bits, 1, in ntfs_mft_load() 339 last_vcn = vol->mft_na->allocated_size >> vol->cluster_size_bits; in ntfs_mft_load()
|
D | dir.c | 388 index_vcn_size_bits = vol->cluster_size_bits; in ntfs_inode_lookup_by_name() 1205 index_vcn_size_bits = vol->cluster_size_bits; in ntfs_readdir() 1591 ni->vol->cluster_size_bits; in __ntfs_create()
|
D | inode.c | 609 >> vol->cluster_size_bits; in ntfs_extent_inode_open()
|
D | index.c | 802 icx->vcn_size_bits = ni->vol->cluster_size_bits; in ntfs_index_lookup()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsfix.c | 414 << vol->cluster_size_bits)) { in clear_badclus() 827 vol->mft_lcn << vol->cluster_size_bits, in short_mft_selfloc_condition() 837 << vol->cluster_size_bits) in short_mft_selfloc_condition() 846 && ((rl[0].length << vol->cluster_size_bits) in short_mft_selfloc_condition() 898 rl->lcn << vol->cluster_size_bits, in attrlist_selfloc_condition() 912 >> vol->cluster_size_bits; in attrlist_selfloc_condition() 965 offs = (vol->mft_lcn << vol->cluster_size_bits) in self_mapped_selfloc_condition() 974 >> vol->cluster_size_bits; in self_mapped_selfloc_condition() 988 && ((u64)(rl[1].lcn << vol->cluster_size_bits) in self_mapped_selfloc_condition() 991 << vol->cluster_size_bits) > offs)) { in self_mapped_selfloc_condition() [all …]
|
D | ntfsfallocate.c | 506 pos = zrl->vcn << vol->cluster_size_bits; in ntfs_inner_zero() 513 << vol->cluster_size_bits, in ntfs_inner_zero() 525 pos = zrl->vcn << vol->cluster_size_bits; in ntfs_inner_zero() 549 if ((rl->vcn << vol->cluster_size_bits) < na->initialized_size) { in ntfs_merge_allocation() 607 from_vcn = alloc_offs >> vol->cluster_size_bits; in ntfs_inner_allocation() 609 >> vol->cluster_size_bits; in ntfs_inner_allocation() 645 need << vol->cluster_size_bits); in ntfs_inner_allocation()
|
D | ntfsresize.c | 2230 << vol->cluster_size_bits) in relocate_inode() 2308 << resize->vol->cluster_size_bits) in relocate_inodes() 2439 if (ntfs_attr_truncate(na,nr_clusters << vol->cluster_size_bits)) { in truncate_badclust_bad_attr() 2536 lcnbmp_na->allocated_size = nr_bm_clusters << vol->cluster_size_bits; in truncate_bitmap_data_attr() 2699 pos = (resize->new_mft_start->lcn << vol->cluster_size_bits) in truncate_bitmap_file() 3169 pos = (vol->mft_lcn << vol->cluster_size_bits) in get_unnamed_attr() 3204 pos = (vol->mft_lcn << vol->cluster_size_bits) in read_and_get_attr() 3275 + (prl->vcn << vol->cluster_size_bits), in get_mft_bitmap() 3276 prl->length << vol->cluster_size_bits); in get_mft_bitmap() 3458 << (vol->cluster_size_bits - vol->sector_size_bits); in can_expand() [all …]
|
D | ntfscluster.c | 328 cb = vol->cluster_size_bits; in info() 514 opts.range_begin >>= (vol->cluster_size_bits - vol->sector_size_bits); in main() 515 opts.range_end >>= (vol->cluster_size_bits - vol->sector_size_bits); in main()
|
D | ntfswipe.c | 682 << vol->cluster_size_bits; in wipe_compressed_attribute() 688 << vol->cluster_size_bits), in wipe_compressed_attribute() 704 vol->cluster_size_bits) - 2)) in wipe_compressed_attribute() 707 size = (rlt->vcn << vol->cluster_size_bits) - offset; in wipe_compressed_attribute() 710 offset = (cur_vcn << vol->cluster_size_bits) - size; in wipe_compressed_attribute() 740 restart->vcn << vol->cluster_size_bits, in wipe_compressed_attribute()
|
D | ntfscp.c | 622 << alctx->vol->cluster_size_bits; in set_sizes() 671 << alctx->vol->cluster_size_bits; in assign_runlist() 782 >> vol->cluster_size_bits; in preallocate()
|
D | ntfsinfo.c | 501 >> vol->cluster_size_bits, in ntfs_dump_volume() 503 >> vol->cluster_size_bits) in ntfs_dump_volume()
|
D | mkntfs.c | 3762 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in mkntfs_override_vol_params() 3968 g_vol->cluster_size_bits >> 10 /* >> 10 == / 1024 */); in mkntfs_initialize_rl_mft() 4035 volume_size = g_vol->nr_clusters << g_vol->cluster_size_bits; in mkntfs_initialize_rl_logfile() 4165 volume_size = g_vol->nr_clusters << g_vol->cluster_size_bits; in mkntfs_fill_device_with_zeroes()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | volume.h | 201 u8 cluster_size_bits; /* Log(2) of the byte size of a cluster. */ member
|
/third_party/ntfs-3g/src/ |
D | ntfs-3g.c | 515 delta_bits = vol->cluster_size_bits - vol->mft_record_size_bits; in ntfs_fuse_statfs() 693 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()
|
D | lowntfs-3g.c | 495 delta_bits = vol->cluster_size_bits - vol->mft_record_size_bits; in ntfs_fuse_statfs() 636 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()
|