Lines Matching defs:size
72 "[-b base | -i disk] [-s size] disk", 1 },
83 "\t\t[-m size] [-n switch] [-r path] [-t name] id | name", 1},
217 ret = vm_start(res->id, res->name, res->size, res->nifs,
409 err(1, "invalid %s size: %s", type, word);
413 errx(1, "%s size must be at least 1MB", type);
417 errx(1, "memory size too large (limit is %s)", result);
419 errx(1, "memory size too large");
423 res->size = (val / (1024 * 1024)) * (1024 * 1024);
425 if (res->size != (size_t)val) {
426 if (fmt_scaled(res->size, result) == 0)
427 warnx("%s size rounded to %s", type, result);
429 warnx("%s size rounded to %zuB", type, res->size);
598 return ctl_convert(input, disk, type, res->size);
603 if (res->size == 0 && !base) {
604 fprintf(stderr, "could not create %s: missing size argument\n",
609 if ((ret = create_imagefile(type, disk, base, res->size, &format)) != 0) {
626 off_t size;
643 &src.file, &src.size)) == -1) {
649 dstsize = src.size;
650 if (dstsize < (size_t)src.size) {
651 errstr = "size cannot be smaller than input disk size";
656 dst.size = ALIGNSZ(dstsize, 1048576);
658 if ((ret = create_imagefile(dst.type, dst.disk, NULL, dst.size,
665 &dst.file, &dst.size)) == -1) {
675 * the backend cluster size.
684 for (off = 0; off < dst.size; off += len) {
686 if (off < src.size) {
687 len = MIN((off_t)buflen, src.size - off);
714 format, len, dst.size, off);
724 if (dstsize < (size_t)dst.size)
725 warnx("destination size rounded to %lld megabytes",
726 dst.size / 1048576);
877 if (res->size)