• M
    Revert "hw/block/fdc: Implement tray status" · abb3e55b
    Max Reitz 提交于
    This reverts the changes that commit
    2e1280e8 applied to hw/block/fdc.c;
    also, an additional case of drv->media_inserted use has crept in since,
    which is replaced by a call to blk_is_inserted().
    
    That commit changed tests/fdc-test.c, too, because after it, one less
    TRAY_MOVED event would be emitted when executing 'change' on an empty
    drive. However, now, no TRAY_MOVED events will be emitted at all, and
    the tray_open status returned by query-block will always be false,
    necessitating (different) changes to tests/fdc-test.c and iotest 118,
    which is why this patch is not a pure revert of said commit.
    Signed-off-by: NMax Reitz <mreitz@redhat.com>
    Message-id: 1454096953-31773-4-git-send-email-mreitz@redhat.com
    Reviewed-by: NEric Blake <eblake@redhat.com>
    abb3e55b
fdc.c 81.0 KB