Lines Matching defs:file
35 "[-u <uuid>] [-f] <file>\n");
36 printf(" or: vmdkimage -d <file>\n");
37 printf(" -d, --dump dumps info for the image file\n");
38 printf(" -i, --imagesize size of raw partition image file\n");
40 printf(" -f, --file the raw partition image file\n");
54 fprintf(stderr, "Error: couldn't open file %s (%s)\n", filename,
153 const char *file = NULL;
171 {"file", required_argument, 0, 'f'},
218 file = optarg;
234 if (file == NULL && optind == argc - 1)
235 file = argv[optind];
237 if (dumpOnly && file != NULL) {
238 dump_image_info(file);
242 if (!headerSize || !imageSize || !file)
276 const char *name = strrchr(file, '/');
277 name = name ? (name + 1) : file;
281 // printf("file %s\n", file);
323 if (realpath(file, fullPath + 5) == NULL)
324 strncpy(fullPath + 5, file, sizeof(fullPath) - 5);
372 int fd = open(file, O_RDWR | O_CREAT, 0666);
374 fprintf(stderr, "Error: couldn't open file %s (%s)\n", file,
393 fprintf(stderr, "Error: resizing file %s failed (%s)\n", file,
403 fprintf(stderr, "Error: writing file %s failed (%s)\n", file,