/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsclone.c | 256 sle64 nr_clusters; member 939 static void clone_ntfs(u64 nr_clusters, int more_use) argument 960 progress_init(&progress, p_counter, nr_clusters, 100); 977 for (last_cl = cl = 0; cl <= (u64)vol->nr_clusters; cl++) { 1030 (u64)sle64_to_cpu(image_hdr.nr_clusters) + 1 : 1038 while (pos <= sle64_to_cpu(image_hdr.nr_clusters)) { 1040 if (pos == sle64_to_cpu(image_hdr.nr_clusters)) { 1077 > sle64_to_cpu(image_hdr.nr_clusters))) 1871 if (((vol->nr_clusters + 7) >> 3) > pos) 1964 u64 nr_clusters; local [all …]
|
D | ntfsresize.c | 621 old_b = vol->nr_clusters * vol->cluster_size; in print_advise() 628 if (supp_lcn > vol->nr_clusters) { in print_advise() 637 freed_b = (vol->nr_clusters - supp_lcn + 1) * vol->cluster_size; in print_advise() 699 static s64 nr_clusters_to_bitmap_byte_size(s64 nr_clusters) in nr_clusters_to_bitmap_byte_size() argument 703 bm_bsize = rounded_up_division(nr_clusters, 8); in nr_clusters_to_bitmap_byte_size() 868 if (k >= (u64)vol->nr_clusters) { in build_lcn_usage_bitmap() 974 cl == vol->nr_clusters / 2) { in compare_bitmaps() 2430 s64 nr_clusters = resize->new_volume_size; in truncate_badclust_bad_attr() local 2439 if (ntfs_attr_truncate(na,nr_clusters << vol->cluster_size_bits)) { in truncate_badclust_bad_attr() 2481 for (i = vol->nr_clusters; i < new_size; i++) in realloc_bitmap_data_attr() [all …]
|
D | ntfscluster.c | 332 fc = vol->nr_clusters-mc-uc; in info() 340 d = vol->nr_clusters << cb; in info() 341 e = vol->nr_clusters; in info() 342 f = vol->nr_clusters >> cps; in info()
|
D | mkntfs.c | 1080 end = g_vol->nr_clusters; in allocate_scattered_clusters() 3780 vol->nr_clusters = volume_size / vol->cluster_size; in mkntfs_override_vol_params() 3786 if ((vol->nr_clusters != ((opts.num_sectors * opts.sector_size) / in mkntfs_override_vol_params() 3790 vol->nr_clusters)) { in mkntfs_override_vol_params() 3797 (unsigned long long)vol->nr_clusters, in mkntfs_override_vol_params() 3798 (unsigned long long)vol->nr_clusters); in mkntfs_override_vol_params() 3800 if (vol->nr_clusters >> 32) { in mkntfs_override_vol_params() 3871 g_lcn_bitmap_byte_size = (g_vol->nr_clusters + 7) >> 3; in mkntfs_initialize_bitmaps() 3886 if (!bitmap_allocate(g_vol->nr_clusters, in mkntfs_initialize_bitmaps() 3887 ((s64)g_lcn_bitmap_byte_size << 3) - g_vol->nr_clusters)) in mkntfs_initialize_bitmaps() [all …]
|
D | ntfsfix.c | 413 && !ntfs_attr_truncate(na,vol->nr_clusters in clear_badclus() 622 < vol->nr_clusters) in rewrite_upcase() 624 >= (vol->nr_clusters << 1)) in rewrite_upcase() 631 (long long)(vol->nr_clusters + 7) >> 3); in rewrite_upcase()
|
D | ntfswipe.c | 503 for (i = 0; i < vol->nr_clusters; i++) { in wipe_unused() 566 for (i = 0; i < vol->nr_clusters; i+=64) { in wipe_unused_fast() 567 blksize = vol->nr_clusters - i; in wipe_unused_fast()
|
D | ntfsinfo.c | 486 (long long)vol->nr_clusters); in ntfs_dump_volume() 504 / vol->nr_clusters); in ntfs_dump_volume() 554 /(double)vol->nr_clusters); in ntfs_dump_volume()
|
D | ntfscp.c | 720 && (pos < vol->nr_clusters)) { in find_best_runs()
|
/third_party/ntfs-3g/libntfs-3g/ |
D | lcnalloc.c | 82 ntfs_cluster_set_zone_pos(vol->mft_zone_end, vol->nr_clusters, in ntfs_cluster_update_zone_pos() 306 zone_end = vol->nr_clusters; in ntfs_cluster_alloc() 491 zone_end = vol->nr_clusters; in ntfs_cluster_alloc() 608 && (vol->free_clusters > vol->nr_clusters)) in ntfs_cluster_free_from_rl() 611 (long long)vol->nr_clusters); in ntfs_cluster_free_from_rl() 644 if (vol->free_clusters > vol->nr_clusters) in ntfs_cluster_free_basic() 647 (long long)vol->nr_clusters); in ntfs_cluster_free_basic() 767 if (vol->free_clusters > vol->nr_clusters) in ntfs_cluster_free() 770 (long long)vol->nr_clusters); in ntfs_cluster_free()
|
D | bootsect.c | 237 vol->nr_clusters = sectors >> (ffs(sectors_per_cluster) - 1); in ntfs_boot_sector_parse() 243 if ((vol->mft_lcn < 0 || vol->mft_lcn > vol->nr_clusters) || in ntfs_boot_sector_parse() 244 (vol->mftmirr_lcn < 0 || vol->mftmirr_lcn > vol->nr_clusters)) { in ntfs_boot_sector_parse() 248 (long long)vol->nr_clusters); in ntfs_boot_sector_parse()
|
D | ioctl.c | 318 for (start_buf = 0; start_buf < vol->nr_clusters; in fstrim() 328 if (end_buf > vol->nr_clusters) in fstrim() 329 end_buf = vol->nr_clusters; in fstrim()
|
D | device.c | 442 if (vol->nr_clusters < lcn + count) { in ntfs_cluster_read() 445 "(%lld < %lld)", (long long)vol->nr_clusters, in ntfs_cluster_read() 478 if (vol->nr_clusters < lcn + count) { in ntfs_cluster_write() 481 "(%lld < %lld)", (long long)vol->nr_clusters, in ntfs_cluster_write()
|
D | volume.c | 596 mft_zone_size = vol->nr_clusters >> 3; /* 12.5% */ in ntfs_volume_startup() 625 while (vol->mft_zone_end >= vol->nr_clusters) { in ntfs_volume_startup()
|
D | attrib.c | 6996 (u64)((ni->vol->nr_clusters + 7) >> 3)))) {
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | volume.h | 216 s64 nr_clusters; /* Volume size in clusters, hence also the member
|
/third_party/e2fsprogs/lib/blkid/ |
D | probe.c | 694 __u64 nr_clusters; in probe_ntfs() local 712 nr_clusters = blkid_le64(ns->number_of_sectors) / sectors_per_cluster; in probe_ntfs() 714 if ((blkid_le64(ns->mft_cluster_location) > nr_clusters) || in probe_ntfs() 715 (blkid_le64(ns->mft_mirror_cluster_location) > nr_clusters)) in probe_ntfs()
|
/third_party/ntfs-3g/src/ |
D | ntfs-3g.c | 506 sfs->f_blocks = vol->nr_clusters; in ntfs_fuse_statfs() 693 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()
|
D | lowntfs-3g.c | 486 sfs.f_blocks = vol->nr_clusters; in ntfs_fuse_statfs() 636 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()
|