A couple of weeks ago I submitted a proposed patch to extend BLKRRPART
It got zero response which I assume means no dice to that approach.
So, does anyone have another suggestion about how to deal with this issue?
The readable size of new, factory blank, optical media can change via user
space ioctl(SG_IO) commands to format overwritable media such as DVD+RW for
a UDF filesystem or write to sequential media such as DVD-R for an ISO-9660
filesystem. However there appears to be no easy way to update the size used
by the block layer from the initial value of zero. Traditionally,
ejecting and
reinserting the media is the workaround to this long standing issue which
programs such as growisofs use by automatically opening and closing the tray
at the end of a session so the newly created filesystem becomes mountable
and readable.
Steve Kenton