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