Added extra padding to end of image to account for apparent
inability of certain burners to properly write the last few blocks of the image to disc. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5871 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
24291d0ad6
commit
1d63afff42
@ -701,6 +701,14 @@ UdfBuilder::Build()
|
||||
ssize_t bytes = _OutputFile().Zero(padding);
|
||||
error = check_size_error(bytes, padding);
|
||||
}
|
||||
// Pad with an extra 256 blocks, since burners seem to
|
||||
// sometimes have trouble writing the last few blocks of
|
||||
// an image
|
||||
if (!error) {
|
||||
uint32 size = _BlockSize() * 256;
|
||||
ssize_t bytes = _OutputFile().Zero(size);
|
||||
error = check_size_error(bytes, size);
|
||||
}
|
||||
if (!error)
|
||||
_Stats().SetImageSize(_OutputFile().Position());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user