Re: [Qemu-devel] [PATCH v4 10/25] block: Add bdrv_dirname()

2017-01-18 Thread Max Reitz
On 17.01.2017 00:02, Eric Blake wrote: > On 01/16/2017 02:49 PM, Max Reitz wrote: >> This function may be implemented by block drivers to derive a directory >> name from a BDS. Concatenating this g_free()-able string with a relative >> filename must result in a valid (not necessarily existing) file

Re: [Qemu-devel] [PATCH v4 10/25] block: Add bdrv_dirname()

2017-01-16 Thread Eric Blake
On 01/16/2017 02:49 PM, Max Reitz wrote: > This function may be implemented by block drivers to derive a directory > name from a BDS. Concatenating this g_free()-able string with a relative > filename must result in a valid (not necessarily existing) filename, so > this is a function that should ge

[Qemu-devel] [PATCH v4 10/25] block: Add bdrv_dirname()

2017-01-16 Thread Max Reitz
This function may be implemented by block drivers to derive a directory name from a BDS. Concatenating this g_free()-able string with a relative filename must result in a valid (not necessarily existing) filename, so this is a function that should generally be not implemented by format drivers, bec