Lines Matching defs:image
253 ffs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts)
258 assert(image != NULL);
264 printf("ffs_makefs: image %s directory %s root %p\n",
265 image, dir, root);
273 image, (long long)fsopts->size, (long long)fsopts->inodes);
275 /* create image */
277 if (ffs_create_image(image, fsopts) == -1)
278 errx(1, "Image file `%s' not created.", image);
286 /* populate image */
287 printf("Populating `%s'\n", image);
290 errx(1, "Image file `%s' not populated.", image);
305 /* write out superblock; image is now complete */
308 err(1, "Closing `%s'", image);
310 printf("Image `%s' complete\n", image);
464 ffs_create_image(const char *image, fsinfo_t *fsopts)
474 assert (image != NULL);
477 /* create image */
478 if ((fsopts->fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666))
480 warn("Can't open `%s' for writing", image);
484 /* zero image */
491 image, bufsize);
508 printf("zero-ing image `%s', %lld sectors, "
509 "using %d byte chunks\n", image, (long long)bufrem,
519 warn("zeroing image, %lld bytes to go",
531 printf("calling mkfs(\"%s\", ...)\n", image);
532 fs = ffs_mkfs(image, fsopts);
550 image,