mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: Drop BlockDriver.bdrv_ioctl
Now the callback is not used any more, drop the field along with all implementations in block drivers, which are iscsi and raw. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 1447064214-29930-8-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
5c5ae76acb
commit
83c98d7b92
4 changed files with 0 additions and 48 deletions
|
@ -2175,12 +2175,6 @@ static int hdev_open(BlockDriverState *bs, QDict *options, int flags,
|
|||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
static int hdev_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
|
||||
{
|
||||
BDRVRawState *s = bs->opaque;
|
||||
|
||||
return ioctl(s->fd, req, buf);
|
||||
}
|
||||
|
||||
static BlockAIOCB *hdev_aio_ioctl(BlockDriverState *bs,
|
||||
unsigned long int req, void *buf,
|
||||
|
@ -2338,7 +2332,6 @@ static BlockDriver bdrv_host_device = {
|
|||
|
||||
/* generic scsi device */
|
||||
#ifdef __linux__
|
||||
.bdrv_ioctl = hdev_ioctl,
|
||||
.bdrv_aio_ioctl = hdev_aio_ioctl,
|
||||
#endif
|
||||
};
|
||||
|
@ -2471,7 +2464,6 @@ static BlockDriver bdrv_host_cdrom = {
|
|||
.bdrv_lock_medium = cdrom_lock_medium,
|
||||
|
||||
/* generic scsi device */
|
||||
.bdrv_ioctl = hdev_ioctl,
|
||||
.bdrv_aio_ioctl = hdev_aio_ioctl,
|
||||
};
|
||||
#endif /* __linux__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue