Lines Matching refs:d
546 struct privdata *d = data; in copy_used() local
548 int pdone = (pos*100)/d->info->total_blocks; in copy_used()
549 if (pdone > d->done) { in copy_used()
550 d->done = pdone; in copy_used()
551 printf("Done with %d percent\n", d->done); in copy_used()
554 d->count++; in copy_used()
555 buf = d->buf; in copy_used()
556 if(read_structure_blk(d->infd, (unsigned long long)pos, d->buf, 1)) { in copy_used()
562 ret = lseek64(d->outfd, pos*F2FS_BLKSIZE, SEEK_SET); in copy_used()
568 ret = write(d->outfd, d->buf, F2FS_BLKSIZE); in copy_used()
597 struct privdata d; in main() local
598 d.infd = infd; in main()
599 d.outfd = outfd; in main()
600 d.count = 0; in main()
608 d.buf = buf; in main()
609 d.zbuf = zbuf; in main()
610 d.done = 0; in main()
611 d.info = info; in main()
613 run_on_used_blocks(0, info, ©_used, &d); in main()
614 printf("Copied %d blocks. Expected to copy %d\n", d.count, expected_count); in main()