]> git.proxmox.com Git - mirror_qemu.git/commit
raw-format: Split raw_read_options()
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:30 +0000 (13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
commit500e2434207dd3cff4f88e6d6c7b0b7b9c1a2caf
treef4f89b9b0cc972e203db5ec04bcec4caf445e5f8
parent2519f54919a9c3e0696e2fac7d564e15722618c4
raw-format: Split raw_read_options()

Split raw_read_options() into one function that actually just reads the
options, and another that applies them.  This will allow us to detect
whether the user has specified any options before attaching the file
child (so we can decide on its role based on the options).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200513110544.176672-21-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-format.c