Lines Matching refs:s64
155 s64 bytes;
160 s64 size;
176 s64 lcn; /* last used LCN for a "special" file/attr type */
177 s64 inode; /* inode using it */
197 s64 inuse; /* num of clusters in use */
208 s64 new_volume_size; /* in clusters; 0 = --info w/o --size */
213 s64 inuse; /* num of clusters in use */
215 s64 mftmir_old; /* $MFTMirr AT_DATA's old LCN */
218 s64 badclusters; /* num of physically dead clusters */
231 s64 last_unsupp; /* last unsupported cluster */
237 static s64 max_free_cluster_range = 0;
250 static s64 rounded_up_division(s64 numer, s64 denom) in rounded_up_division()
420 static s64 get_new_volume_size(char *s) in get_new_volume_size()
422 s64 size; in get_new_volume_size()
617 static void print_advise(ntfs_volume *vol, s64 supp_lcn) in print_advise()
619 s64 old_b, new_b, freed_b, old_mb, new_mb, freed_mb; in print_advise()
663 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) in rl_set()
699 static s64 nr_clusters_to_bitmap_byte_size(s64 nr_clusters) in nr_clusters_to_bitmap_byte_size()
701 s64 bm_bsize; in nr_clusters_to_bitmap_byte_size()
711 s64 inode, last_lcn; in collect_resize_constraints()
778 s64 lcn, lcn_length, start, len, inode; in collect_relocation_info()
779 s64 new_vol_size; /* (last LCN on the volume) + 1 */ in collect_relocation_info()
829 s64 inode; in build_lcn_usage_bitmap()
851 s64 lcn = rl[i].lcn; in build_lcn_usage_bitmap()
852 s64 lcn_length = rl[i].length; in build_lcn_usage_bitmap()
935 s64 i, pos, count; in compare_bitmaps()
958 s64 cl; /* current cluster */ in compare_bitmaps()
1059 s64 nr_mft_records, inode = 0; in build_allocation_bitmap()
1107 s64 i; in build_resize_constraints()
1145 s64 nr_mft_records, inode; in set_resize_constraints()
1180 s64 unmapped_len = tmp->length; in rl_fixup()
1696 static void set_bitmap_range(struct bitmap *bm, s64 pos, s64 length, u8 bit) in set_bitmap_range()
1714 static void set_max_free_zone(s64 length, s64 end, runlist_element *rle) in set_max_free_zone()
1724 s64 nr_vol_clusters, in find_free_cluster()
1728 static s64 pos = 0; in find_free_cluster()
1729 s64 i, items = rle->length; in find_free_cluster()
1730 s64 free_zone = 0; in find_free_cluster()
1780 s64 items, in alloc_cluster()
1781 s64 nr_vol_clusters, in alloc_cluster()
1787 s64 vcn = 0; in alloc_cluster()
1882 static void lseek_to_cluster(ntfs_volume *vol, s64 lcn) in lseek_to_cluster()
1892 static void copy_clusters(ntfs_resize_t *resize, s64 dest, s64 src, s64 len) in copy_clusters()
1894 s64 i; in copy_clusters()
1928 static void relocate_clusters(ntfs_resize_t *r, runlist *dest_rl, s64 src_lcn) in relocate_clusters()
1944 static void rl_split_run(runlist **rl, int run, s64 pos) in rl_split_run()
1948 s64 len_head, len_tail; in rl_split_run()
1983 s64 vcn; in rl_insert_at_run()
2010 s64 lcn, lcn_length; in relocate_run()
2011 s64 new_vol_size; /* (last LCN on the volume) + 1 */ in relocate_run()
2080 s64 lcn = rl[i].lcn; in relocate_attribute()
2081 s64 lcn_length = rl[i].length; in relocate_attribute()
2226 s64 pos; in relocate_inode()
2247 s64 nr_mft_records; in relocate_inodes()
2250 s64 length; in relocate_inodes()
2338 s64 runs_b, runs_mb; in print_hint()
2380 static void bitmap_file_data_fixup(s64 cluster, struct bitmap *bm) in bitmap_file_data_fixup()
2430 s64 nr_clusters = resize->new_volume_size; in truncate_badclust_bad_attr()
2467 s64 nr_bm_clusters) in realloc_bitmap_data_attr()
2469 s64 i; in realloc_bitmap_data_attr()
2472 s64 new_size = resize->new_volume_size; in realloc_bitmap_data_attr()
2488 static void realloc_lcn_bitmap(ntfs_resize_t *resize, s64 bm_bsize) in realloc_lcn_bitmap()
2508 s64 bm_bsize, size; in truncate_bitmap_data_attr()
2509 s64 nr_bm_clusters; in truncate_bitmap_data_attr()
2616 s64 i, badclusters = 0; in check_bad_sectors()
2696 s64 pos; in truncate_bitmap_file()
2731 static int setup_lcn_bitmap(struct bitmap *bm, s64 nr_clusters) in setup_lcn_bitmap()
2753 s64 bs_size = vol->sector_size; in update_bootsector()
2833 static s64 vol_size(ntfs_volume *v, s64 nr_clusters) in vol_size()
2844 static void print_vol_size(const char *str, s64 bytes) in print_vol_size()
2855 static void print_disk_usage(ntfs_volume *vol, s64 nr_used_clusters) in print_disk_usage()
2857 s64 total, used; in print_disk_usage()
2872 s64 relocations = resize->relocations * resize->vol->cluster_size; in print_num_of_relocations()
3008 s64 last = resize->inuse - 1; in set_disk_usage_constraint()
3016 s64 new_size = resize->new_volume_size; in check_resize_constraints()
3103 s64 byte_increment;
3104 s64 sector_increment;
3105 s64 cluster_increment;
3156 s64 inum) in get_unnamed_attr()
3161 s64 pos; in get_unnamed_attr()
3193 s64 inum, ntfschar *name, int namelen) in read_and_get_attr()
3198 s64 pos; in read_and_get_attr()
3224 static s64 get_data_size(expand_t *expand, s64 inum) in get_data_size()
3227 s64 size; in get_data_size()
3302 s64 i, badclusters = 0; in check_expand_bad_sectors()
3447 s64 old_sector_count; in can_expand()
3448 s64 sectors_needed; in can_expand()
3449 s64 clusters; in can_expand()
3450 s64 minimum_size; in can_expand()
3451 s64 got; in can_expand()
3452 s64 advice; in can_expand()
3453 s64 bitmap_bits; in can_expand()
3584 s64 lcn; in set_bitmap()
3585 s64 lcn_end; in set_bitmap()
3636 s64 bw; in write_bootsector()
3669 s64 bw; in write_bitmap()
3688 if (bw == (s64)expand->bitmap_allocated) in write_bitmap()
3714 s64 pos; in copy_mftmirr()
3715 s64 inum; in copy_mftmirr()
3769 s64 mftmirr_lcn; in copy_boot()
3770 s64 written; in copy_boot()
3901 static int update_runlist(expand_t *expand, s64 inum, in update_runlist()
4026 static int rebase_runlists(expand_t *expand, s64 inum) in rebase_runlists()
4074 static runlist_element *rebase_runlists_meta(expand_t *expand, s64 inum) in rebase_runlists_meta()
4083 s64 data_size; in rebase_runlists_meta()
4084 s64 allocated_size; in rebase_runlists_meta()
4085 s64 lcn; in rebase_runlists_meta()
4208 s64 inum, s64 jnum) in rebase_inode()
4213 s64 pos; in rebase_inode()
4280 s64 inum; in rebase_all_inodes()
4281 s64 jnum; in rebase_all_inodes()
4282 s64 inodecnt; in rebase_all_inodes()
4283 s64 pos; in rebase_all_inodes()
4284 s64 got; in rebase_all_inodes()
4352 s64 br; in get_volume_data()
4493 s64 new_sectors; in expand_to_beginning()
4539 s64 new_size = 0; /* in clusters; 0 = --info w/o --size */ in main()
4540 s64 device_size; /* in bytes */ in main()