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

Danny Kukawka danny.kukawka at web.de
Fri Jun 16 14:03:30 PDT 2006


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.

Cheers,

Danny

 ChangeLog                       |   11 +++++++++++
 libhal-storage/libhal-storage.c |   18 ++++++++++++++++--
 libhal-storage/libhal-storage.h |    1 +
 3 files changed, 28 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-libhal-storage_get_volume_size_and_fd.o_6496.diff
Type: text/x-diff
Size: 5243 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060616/98d7e28a/hal-fix-libhal-storage_get_volume_size_and_fd.o_6496.bin


More information about the hal mailing list