'Returns list of dicts containing backing-chain information.
Includes \'filename\', and \'backing-filename\' for each
applicable entry.
Consider converting this to use --backing-chain and --output=json
when environment supports qemu-img 1.5.0.
:param volume: volume reference
:param path: path to image file at top of chain'

def _get_backing_chain_for_path(self, volume, path):

    output = []
    info = self._qemu_img_info(path, volume.name)
    new_info = {}
    new_info['filename'] = os.path.basename(path)
    new_info['backing-filename'] = info.backing_file
    output.append(new_info)
    while new_info['backing-filename']:
        filename = new_info['backing-filename']
        path = os.path.join(self._local_volume_dir(volume), filename)
        info = self._qemu_img_info(path, volume.name)
        backing_filename = info.backing_file
        new_info = {}
        new_info['filename'] = filename
        new_info['backing-filename'] = backing_filename
        output.append(new_info)
    return output
