Re: [Qemu-devel] [PATCH v6 6/9] qemu-img: Use bdrv_filename() for map

2017-01-16 Thread Eric Blake
On 01/16/2017 10:15 AM, Max Reitz wrote: > Replaces bs->filename by the result of bdrv_filename() in the > qemu-img map subcommand. Since that value is queried relatively often, > however, we should try to reuse the last result. > > Signed-off-by: Max Reitz > --- > qemu-img.c | 31 ++

[Qemu-devel] [PATCH v6 6/9] qemu-img: Use bdrv_filename() for map

2017-01-16 Thread Max Reitz
Replaces bs->filename by the result of bdrv_filename() in the qemu-img map subcommand. Since that value is queried relatively often, however, we should try to reuse the last result. Signed-off-by: Max Reitz --- qemu-img.c | 31 +-- 1 file changed, 25 insertions(+), 6