Re: [Qemu-devel] [PATCH v2 1/2] vmdk: Fix error for JSON descriptor file names

2014-12-03 Thread Fam Zheng
On Wed, 12/03 14:57, Max Reitz wrote: > If vmdk blindly tries to use path_combine() using bs->file->filename as > the base file name, this will result in a bad error message for JSON > file names when calling bdrv_open(). It is better to only try > bs->file->exact_filename; if that is empty, bs->fi

[Qemu-devel] [PATCH v2 1/2] vmdk: Fix error for JSON descriptor file names

2014-12-03 Thread Max Reitz
If vmdk blindly tries to use path_combine() using bs->file->filename as the base file name, this will result in a bad error message for JSON file names when calling bdrv_open(). It is better to only try bs->file->exact_filename; if that is empty, bs->file->filename will be useless for path_combine(