block/null: Implement bdrv_refresh_filename()
authorMax Reitz <mreitz@redhat.com>
Fri, 10 Jun 2016 18:57:48 +0000 (20:57 +0200)
committerMax Reitz <mreitz@redhat.com>
Thu, 16 Jun 2016 13:20:37 +0000 (15:20 +0200)
commit67882b153544f7b29412a5bdf40dd3bbba8d64ae
tree57f17e71e24caef9229288c568186b80a41e3a54
parent274fccee2bf63702b34e3923b1e50a49147a7918
block/null: Implement bdrv_refresh_filename()

The null block driver ignores any filename used for creating its BDSs,
which allows creating such BDSs even without any filename at all. In
that case, we currently construct a JSON filename when queried instead
of a plain "null-co://" or "null-aio://". This patch implements
bdrv_refresh_filename() to remedy this behavior.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20160610185750.30956-4-mreitz@redhat.com
[mreitz@redhat.com: Added commit message]
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/null.c