Lines Matching defs:from
548 static int data_copy(ntfs_volume *vol, runlist_element *from, runlist_element *to)
554 if (!vol || !from || !to)
556 if ((from->length != to->length) || (from->lcn < 0) || (to->lcn < 0))
559 //ntfs_log_info("data_copy: from 0x%llx to 0x%llx\n", from->lcn, to->lcn);
566 for (i = 0; i < from->length; i++) {
567 //ntfs_log_info("read cluster at %8lld\n", from->lcn+i);
568 res = ntfs_pread(vol->dev, (from->lcn+i) * vol->cluster_size,
595 * from in use
601 static s64 move_runlist(ntfs_volume *vol, runlist_element *from,
606 if (!vol || !from || !to)
608 if (from->length != to->length) {
613 if ((from->lcn < 0) || (to->lcn < 0)) {
618 for (i = 0; i < from->length; i++) {
619 if (!utils_cluster_in_use(vol, from->lcn+i)) {
620 ntfs_log_error("from not in use\n");
637 if (data_copy(vol, from, to) < 0) {
642 if (bitmap_free(vol, from) < 0) {
670 runlist *from;
687 from = ntfs_mapping_pairs_decompress(vol, rec, NULL);
688 if (!from) {
689 ntfs_log_info("!from\n");
697 need_from = ntfs_get_size_for_mapping_pairs(vol, from, 0, INT_MAX);
700 //ntfs_debug_runlist_dump2(from, 5, "\t");
703 if (from[i].vcn == run->vcn) {
704 from[i].lcn = to->lcn;
709 //ntfs_debug_runlist_dump2(from, 5, "\t");
711 need_to = ntfs_get_size_for_mapping_pairs(vol, from, 0, INT_MAX);
737 need_to, from, 0, NULL);
747 free(from);
861 * Start from here.