[PATCH] fix libhal_volume_get_size() and fd.o bug #6496

David Zeuthen david at fubar.dk
Mon Jul 10 09:29:49 PDT 2006


Hi,

Sorry for the lag; been traveling, busy with work and under the weather,

On Fri, 2006-06-16 at 23:03 +0200, Danny Kukawka wrote:
> Hi,
> 
> this patch fixes some issues in libhal-storge:
> 
> * fix for libhal_volume_get_size() to use, if available, volume.size instead 
> of compute the volume size from volume.block_size and volume.num_blocks. The 
> reason for this change: the value for block_size (from BLKSSZGET) can be 
> wrong on some devices.
> 
> * added slightly changed patch from Wouter Paesen <wouter at kangaroot.net> to 
> fix fd.o bug #6496. This part add a libhal_volume_get_disc_capacity() method 
> to the library.
> 
> Please review.

Looks good to me.

Thanks,
David




More information about the hal mailing list