brasero claims dvd image is too large for disc
Submitted by David Balažic
Assigned to Brasero maintainer(s)
Link to original bug (#663637)
Description
https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/658004
Brasero claims an iso file is too large for the disc. The inserted disc is a blanked DVD+RW. The iso file is 4,700,372,992 bytes big, which is the official capacity of DVD+RW discs (as per wikipedia and other sources).
What I did:
- insert a DVD+RW with content
- cp /dev/sr0 dvd.iso
- check dvd.iso size to be 4,700,372,992 bytes
- right click dvd.iso and select Write to Disc...
Result: The brasero/nautilus dialog claims: The data size is too large for the disc even with the overburn option.
Quick test file: touch test.iso && teuncate -s 4700372992 test.iso
The error seems to be in the file libbrasero-burn/brasero-session-cfg.c function brasero_session_cfg_check_size() line 873:
BRASERO_BURN_LOG ("Session size %lli/Disc size %lli", priv->session_blocks, priv->disc_size);
if (priv->session_blocks < priv->
disc_size) { // line 873
priv->is_valid = BRASERO_SESSION_VALID;
return BRASERO_SESSION_VALID;
}
The log output says: BraseroBurn: (at brasero-session-cfg.c :871) Session size 2295104/Disc size 2295104
So there is enough space, but the code expects more than enough space. The correct check would be:
if (priv->session_blocks <= priv->
disc_size) { // fixed line 873
Version: 3.2.x