[PATCH] if CD/DVD is blank: set volume.block_size to '0'

Danny Kukawka danny.kukawka at web.de
Fri Jun 16 14:10:41 PDT 2006


Hi, 

this little patch set the volume.block_size for a empty/blank CD/DVD to 0 
instead of 4 which we get from BLKGETSIZE64. This should avoid stange values 
for volume size if the value is computed from volume.block_size and 
volume.num_blocks.

Please review.

Cheers,

Danny

 ChangeLog                          |    6 ++++++
 hald/linux2/probing/probe-volume.c |    2 ++
 2 files changed, 8 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-blank_CD_DVD_volume.block_size.diff
Type: text/x-diff
Size: 1452 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060616/08487d9c/hal-fix-blank_CD_DVD_volume.block_size.bin


More information about the hal mailing list