]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Don't lie about path used to look up in error message
authorPeter Krempa <pkrempa@redhat.com>
Mon, 24 Feb 2014 15:07:40 +0000 (16:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Mar 2014 08:22:09 +0000 (09:22 +0100)
commit46446313e8d8021849081bca097ab9195a604bb8
tree50cca5b8b02f846abcce70232cd106df7392f01e
parent7fb3902b0f6649c6d919566bff2c8ec0dd83d2d6
storage: Don't lie about path used to look up in error message

In storageVolLookupByPath the provided path is "sanitized" at first.
This removes some extra slashes and stuff. When the lookup of the volume
fails the original path is used which makes it hard to trace errors in
some cases.

Improve the error message to print the sanitized path along with the
user provided path if they are not equal.
src/storage/storage_driver.c