• Home
  • Raw
  • Download

Lines Matching refs:fsck

827 static void build_lcn_usage_bitmap(ntfs_volume *vol, ntfsck_t *fsck)  in build_lcn_usage_bitmap()  argument
833 struct bitmap *lcn_bitmap = &fsck->lcn_bitmap; in build_lcn_usage_bitmap()
835 a = fsck->ctx->attr; in build_lcn_usage_bitmap()
836 inode = fsck->ni->mft_no; in build_lcn_usage_bitmap()
871 fsck->outsider += outsiders; in build_lcn_usage_bitmap()
873 if (++fsck->show_outsider <= 10 || opt.verbose) in build_lcn_usage_bitmap()
883 if (++fsck->multi_ref <= 10 || opt.verbose) in build_lcn_usage_bitmap()
890 fsck->inuse += lcn_length; in build_lcn_usage_bitmap()
912 static int walk_attributes(ntfs_volume *vol, ntfsck_t *fsck) in walk_attributes() argument
914 if (!(fsck->ctx = attr_get_search_ctx(fsck->ni, NULL))) in walk_attributes()
917 while (!ntfs_attrs_walk(fsck->ctx)) { in walk_attributes()
918 if (fsck->ctx->attr->type == AT_END) in walk_attributes()
920 build_lcn_usage_bitmap(vol, fsck); in walk_attributes()
923 ntfs_attr_put_search_ctx(fsck->ctx); in walk_attributes()
1057 static int build_allocation_bitmap(ntfs_volume *vol, ntfsck_t *fsck) in build_allocation_bitmap() argument
1068 if (fsck->flags & NTFSCK_PROGBAR) in build_allocation_bitmap()
1093 fsck->ni = ni; in build_allocation_bitmap()
1094 if (walk_attributes(vol, fsck) != 0) { in build_allocation_bitmap()
3044 static void check_cluster_allocation(ntfs_volume *vol, ntfsck_t *fsck) in check_cluster_allocation() argument
3046 memset(fsck, 0, sizeof(ntfsck_t)); in check_cluster_allocation()
3049 fsck->flags |= NTFSCK_PROGBAR; in check_cluster_allocation()
3051 if (setup_lcn_bitmap(&fsck->lcn_bitmap, vol->nr_clusters) != 0) in check_cluster_allocation()
3053 if (build_allocation_bitmap(vol, fsck) != 0) in check_cluster_allocation()
3055 if (fsck->outsider || fsck->multi_ref) { in check_cluster_allocation()
3057 if (fsck->outsider) in check_cluster_allocation()
3059 "of the volume.\n", fsck->outsider); in check_cluster_allocation()
3060 if (fsck->multi_ref) in check_cluster_allocation()
3062 " times.\n", fsck->multi_ref); in check_cluster_allocation()
3067 compare_bitmaps(vol, &fsck->lcn_bitmap); in check_cluster_allocation()
4537 ntfsck_t fsck; in main() local
4639 check_cluster_allocation(vol, &fsck); in main()
4641 print_disk_usage(vol, fsck.inuse); in main()
4643 resize.inuse = fsck.inuse; in main()
4644 resize.lcn_bitmap = fsck.lcn_bitmap; in main()