]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Add blk_dev_has_tray()
authorMax Reitz <mreitz@redhat.com>
Fri, 29 Jan 2016 19:49:10 +0000 (20:49 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 17 Mar 2016 21:23:28 +0000 (16:23 -0500)
commite1a8a0912489d667ab7b35f8dd6ae9ec1de7ca20
tree148bdbbb4aeb309bf542e6e220c9ccec79894507
parent7a2c1c8e66d17125c5b3fe214bd8c103b87bb895
block: Add blk_dev_has_tray()

Pull out the check whether a block device has a tray from
blk_dev_is_tray_open() into its own function so both attributes (whether
there is a tray vs. whether that tray is open) can be queried
independently.

Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 1454096953-31773-2-git-send-email-mreitz@redhat.com
(cherry picked from commit 8f3a73bc57ea83e5b3930d14fc596ea51859987a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/block-backend.c
include/block/block_int.h