Re: [Qemu-block] [PATCH 02/34] qdict: Add qdict_{set, copy}_default()

2015-05-11 Thread Max Reitz
On 08.05.2015 19:21, Kevin Wolf wrote: In the block layer functions that determine options for a child block device, it's a common pattern to either copy options from the parent's options or to set a default string if the option isn't explicitly set yet for the child. Provide convenience

[Qemu-block] [PATCH 02/34] qdict: Add qdict_{set,copy}_default()

2015-05-08 Thread Kevin Wolf
In the block layer functions that determine options for a child block device, it's a common pattern to either copy options from the parent's options or to set a default string if the option isn't explicitly set yet for the child. Provide convenience functions so that it becomes a one-liner for