On 2/4/20 11:08 AM, Max Reitz wrote:
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 <mre...@redhat.com>
---
  block/raw-format.c | 110 ++++++++++++++++++++++++++-------------------
  1 file changed, 65 insertions(+), 45 deletions(-)

Looks like a useful split.

Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to