blockdev: Pull out blockdev option extraction
commitfbf8175eac92cca541efb1ac4a202fba941b78df
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:31 +0000 (19 17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:23 +0000 (23 18:18 +0200)
tree5eca4694af7071e91ffe2d3f50389332af5bd309
parent5ec18f8c83583b7e22ed4dd360cd937da801ca40
blockdev: Pull out blockdev option extraction

Extract some of the blockdev option extraction code from blockdev_init()
into its own function. This simplifies blockdev_init() and will allow
reusing the code in a different function added in a follow-up patch.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c