summaryrefslogtreecommitdiffstats
path: root/fish/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/alloc.c')
-rw-r--r--fish/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fish/alloc.c b/fish/alloc.c
index 156fcc00..7799e4e1 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -133,7 +133,9 @@ alloc_disk (const char *filename, const char *size_str, int add, int sparse)
}
if (add) {
- if (guestfs_add_drive (g, filename) == -1) {
+ if (guestfs_add_drive_opts (g, filename,
+ GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw",
+ -1) == -1) {
unlink (filename);
return -1;
}