[k3b] [Bug 387384] Rewritable media is not cleared on burn

Thomas Schmitt bugzilla_noreply at kde.org
Fri Dec 1 08:44:13 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=387384

--- Comment #3 from Thomas Schmitt <scdbackup at gmx.net> ---
Hi,

it would also be interesting to see whether the DVD-RW medium is formatted.
BD-RE media are always formatted, but DVD-RW can be used unformatted and
then need a blanking run to get re-usable.
Formatted media can be overwritten without precautions. One just has to
convince the burn program that one does not want to keep the old content.

-------------------------------------------------------------------------
Questions to Aloysius:

So what do you get from the shell command

  dvd+rw-mediainfo /dev/sr0

when the DVD-RW is inserted and the tray already loaded ?

Do you get any user prompt to decide about overwriting of BD-RE:
  "Found BD-RE medium in [...burner name...] Should it be overwritten?"

Does K3B work better with your DVD-RW if you format it by this shell command ?

  dvd+rw-format /dev/sr0

(If it is already formatted it will refuse. That would be ok then.)

-------------------------------------------------------------------------
Code inspection:

Strangely, libk3b/jobs/k3bblankingjob.cpp only talks of CD-RW, not of
DVD-RW media. CD-RW and unformatted DVD-RW are the only media types
which need real SCSI blanking.

The handling of used media is probably in src/k3bemptydiscwaiter.cpp
function K3b::EmptyDiscWaiter::slotMediumChanged().
For BD-RE it does:
  // check if the media contains a filesystem
If it finds an ISO 9660 filesystem (with or without UDF parasite filesystem)
then it is supposed to ask by
  KMessageBox::warningContinueCancel( parentWidgetToUse(),
                  i18n("Found %1 medium in %2 - %3. Should it be overwritten?",

This happens only if the medium is perceived in state Device::STATE_EMPTY.
If the BD-RE is not perceived as STATE_EMPTY then it seems that an add-on
ISO 9660 session will get appended to the medium.

I still have to find out how K3B perceives BD-RE writability state. On
hardware level there are only two states: unformatted and formatted.
The CD states "empty/blank", "appendable", and "closed" do not apply to
formatted media.


Now for DVD-RW.
slotMediumChanged() has:
    // DVD-RW in sequential mode can be empty. DVD-RW in restricted overwrite
mode is always complete.
(The obscure names "seq. incr." and "restr. ovw." mean unformatted and
 formatted, repectively.)

Formatted DVD-RW with an ISO 9660 filesystem should cause a user prompt
like with BD-RE:
   i18n("Found %1 medium in %2 - %3. "
        "Should it be overwritten?",

I see no code path which would cause blanking of an unformatted DVD-RW.

-------------------------------------------------------------------------

Have a nice day :)

Thomas

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the k3b mailing list