[PATCH] Use uint64 for volume.num_blocks

Martin Pitt martin.pitt at ubuntu.com
Mon Jul 21 07:20:31 PDT 2008


Hi,

in https://launchpad.net/bugs/209483 we got reports from multiple
users that some devices report a volume.num_blocks of more than 2G.
Those then fail to be detected with

  18:05:19.024 [I] blockdev.c:1448: Ignoring hotplug event - cannot read 'size'
  18:05:19.024 [W] blockdev.c:1481: Not adding device object

Attached patch uses uint64 for those, which reportedly fixes the issue.

Thanks for considering,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_long_storage_size.patch
Type: text/x-diff
Size: 1107 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080721/2b498ca2/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20080721/2b498ca2/attachment.pgp 


More information about the hal mailing list