commit | 41770f6e6ff41ca98e130c79b566f05ec68912fe | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Nov 24 16:21:18 2022 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jun 28 14:44:51 2024 +0200 |
tree | 9201a2f828b7388605e4c2e5a5d5f29d2d2e452e | |
parent | ae8b45d29317be0bcc60d40e5d627f978b27ccd0 [diff] |
block: do not check bdrv_file_open The set of BlockDrivers that have .bdrv_file_open coincides with those that have .protocol_name and guess what---checking drv->bdrv_file_open is done to see if the driver is a protocol. So check drv->protocol_name instead. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>