Hi, > maybe the problem is when closing the session or writing some kind of lead- > out, or the like.
The problem is that the CLOSE TRACK/SESSION command is appropriate for the end of burning BD-R, only if it is unformatted or if it is formatted to SRM without Pseudo Overwrite. As soon as it is formatted to Pseudo Overwrite, the command is inappropriate, which the burner indicates by the ILLEGAL REQUEST error code (which one would see if K3b would not swallow it). The bug of growisofs is that it formats the BD-R to Pseudo Overwrite but omits to memorize this new state. If the BD-R is already formatted to Pseudo Overwrite when growisofs inspects it, then its state gets memorized and the inappropriate SCSI command is not issued. My patch proposal just sets the memorizing Pseudo Overwrite flag after the medium has been formatted. So growisofs treats it the same as if it had already been formatted when growisofs first inspected it. This avoids the error. Have a nice day :) Thomas