qemu-img: Move quiet into ImgConvertState
commit3d96cb91d7812c27142e0c722482bfd35661e50c
authorMax Reitz <mreitz@redhat.com>
Tue, 7 May 2019 20:35:02 +0000 (7 22:35 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 Jun 2019 12:16:57 +0000 (14 14:16 +0200)
tree2fac47ce832978d98f920f96a7310f7f6ba903a7
parenta2bb6f8c920066fba7bd3fdddf214ea40c0fafab
qemu-img: Move quiet into ImgConvertState

Move img_convert()'s quiet flag into the ImgConvertState so it is
accessible by nested functions.  -q dictates that it suppresses anything
but errors, so if those functions want to emit warnings, they need to
query this flag first.  (There currently are no such warnings, but there
will be as of the next patch.)

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190507203508.18026-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c