WSL2-Linux-Kernel/drivers/block/xen-blkback
Christoph Hellwig 1a827ce1b9 block: remove GENHD_FL_CD
GENHD_FL_CD marks a gendisk as a vaguely CD-ROM like device.
Besides being used internally inside of sunvdc.c an xen-blkfront it
is used by xen-blkback as a hint to claim a device exported to a
guest is a CD-ROM like device.  Just check for disk->cdi instead
which is the right indicator for "real" CD-ROM or DVD drivers.  This
will miss the paravirtualized guest drivers, but those make little
sense to report anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211122130625.1136848-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-29 06:35:21 -07:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
blkback.c xen: branch for v5.12-rc6 2021-03-30 08:55:47 -07:00
common.h xen-blkback: fix compatibility bug with single page rings 2021-04-23 09:34:07 +02:00
xenbus.c block: remove GENHD_FL_CD 2021-11-29 06:35:21 -07:00