On Tue, 25 Mar 2025, Thomas Schmitt wrote:

Hi,

Tim Woodall wrote:
https://github.com/torvalds/linux/blob/master/include/uapi/linux/cdrom.h
[...]
==4710== Warning: noted but unhandled ioctl 0x5395 with no size/direction
hints.

ioctl CDROM_LAST_WRITTEN is something which software would call to
determine the readable size of a storage device with the confirmatation
that it is an optical drive with a loaded medium.
(Everything else will probably yield errno 9 "Bad file descriptor".)

blkid comes to my mind:
 https://codesearch.debian.net/search?q=package%3Autil-linux+CDROM_LAST_WRITTEN


That will be it. Thanks!

Calling:
blkid_get_devname
blkid_get_tag_value

Reply via email to