uint64_t size;
const char *p;
BlockDriver *drv;
- BlockDriverState *bs;
flags = 0;
for(;;) {
filename = argv[optind++];
size = 0;
if (base_filename) {
+ BlockDriverState *bs;
bs = bdrv_new_open(base_filename, NULL);
bdrv_get_geometry(bs, &size);
size *= 512;
error("Error while formatting");
}
}
- /* to set password */
- bs = bdrv_new_open(filename, NULL);
- bdrv_delete(bs);
return 0;
}