Home
last modified time | relevance | path

Searched refs:nr_clusters (Results 1 – 18 of 18) sorted by relevance

/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c256 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 …]
Dntfsresize.c621 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 …]
Dntfscluster.c332 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()
Dmkntfs.c1080 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 …]
Dntfsfix.c413 && !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()
Dntfswipe.c503 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()
Dntfsinfo.c486 (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()
Dntfscp.c720 && (pos < vol->nr_clusters)) { in find_best_runs()
/third_party/ntfs-3g/libntfs-3g/
Dlcnalloc.c82 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()
Dbootsect.c237 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()
Dioctl.c318 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()
Ddevice.c442 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()
Dvolume.c596 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()
Dattrib.c6996 (u64)((ni->vol->nr_clusters + 7) >> 3)))) {
/third_party/ntfs-3g/include/ntfs-3g/
Dvolume.h216 s64 nr_clusters; /* Volume size in clusters, hence also the member
/third_party/e2fsprogs/lib/blkid/
Dprobe.c694 __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/
Dntfs-3g.c506 sfs->f_blocks = vol->nr_clusters; in ntfs_fuse_statfs()
693 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()
Dlowntfs-3g.c486 sfs.f_blocks = vol->nr_clusters; in ntfs_fuse_statfs()
636 && ((ctx->vol->nr_clusters << ctx->vol->cluster_size_bits) in ntfs_init()