vmdk: Leave bdi intact if -ENOTSUP in vmdk_get_info
commit5f58330790b72c4705b373ee0646fb3adf800b4e
authorFam Zheng <famz@redhat.com>
Fri, 14 Nov 2014 04:09:21 +0000 (14 12:09 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 14 Nov 2014 09:20:45 +0000 (14 09:20 +0000)
tree10b23bff5968ca2c11178b8559e02bcfd7147ad6
parentf3a9cfddaec127078ac1898de6b063db8ac3bb48
vmdk: Leave bdi intact if -ENOTSUP in vmdk_get_info

When extent types don't match, we return -ENOTSUP. In this case, be
polite to the caller and don't modify bdi.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1415938161-16217-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c