Lines Matching refs:image
98 chfs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts)
102 assert(image != NULL);
111 printf("Creating `%s'\n", image);
113 if (chfs_create_image(image, fsopts) == -1) {
114 errx(EXIT_FAILURE, "Image file `%s' not created", image);
121 printf("Populating `%s'\n", image);
125 errx(EXIT_FAILURE, "Image file `%s' not populated", image);
132 err(EXIT_FAILURE, "Closing `%s'", image);
136 printf("Image `%s' complete\n", image);
161 chfs_create_image(const char *image, fsinfo_t *fsopts)
163 assert(image != NULL);
166 if ((fsopts->fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666)) == -1) {
167 warn("Can't open `%s' for writing", image);