Displaying 1 result from an estimated 1 matches for "1a4ae27".
2016 May 18
1
[PATCH] drives: force format=raw for /dev/null dummy drives
...all, raw was
already the only format allowed for this kind of drives, so it makes
sense to specify the format explicitly and avoid the autodetection in
qemu.
---
src/drives.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/drives.c b/src/drives.c
index c55b87e..1a4ae27 100644
--- a/src/drives.c
+++ b/src/drives.c
@@ -410,9 +410,15 @@ create_drive_dev_null (guestfs_h *g,
{
CLEANUP_FREE char *tmpfile = NULL;
- if (data->format && STRNEQ (data->format, "raw")) {
- error (g, _("for device '/dev/null', format must be '...