Re: [PATCH 3/6] fms: Add TOC/PMA/ATIP DVD-ROM capabilities

From: Alan Stern
Date: Sun Jun 27 2021 - 10:29:56 EST


On Sun, Jun 27, 2021 at 12:18:16AM +0300, Igor Kononenko wrote:
> The DVD-ROM required the SCSI 6.25 READ TOC/PMA/ATIP Command formats:
> * Response Format 0000b: Formatted TOC
> * Response Format 0001b: Multi-session Information
> (MMC-6 Specification).
>
> This patch adds an implementation of that described above formats.

I will sum up the last four patches of this series by saying that they
add features for emulating DVD-ROM and BD devices. Doing so increases
the size of the f_mass_storage driver by a considerable amount and
also adds a large amount of new material to Jens Axboe's
include/uapi/linux/cdrom.h.

Is any of this really needed? What usage scenarios require
f_mass_storage to emulate a DVD-ROM that couldn't use f_tcm instead?

Alan Stern