Bug 881989 - [PATCH] for uint64 values on i386
Summary: [PATCH] for uint64 values on i386
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-lvm
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andy Grover
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-29 22:34 UTC by James Antill
Modified: 2012-12-06 00:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-06 00:36:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch for using buildvalud("K") instead of buildvalue("l") for lvm sizes (3.96 KB, patch)
2012-11-29 22:34 UTC, James Antill
no flags Details | Diff
New version of buildvalue patch without the helper (3.74 KB, patch)
2012-11-30 14:34 UTC, James Antill
no flags Details | Diff

Description James Antill 2012-11-29 22:34:43 UTC
Created attachment 654641 [details]
patch for using buildvalud("K") instead of buildvalue("l") for lvm sizes

Description of problem:

 LVM sizes are in uint64_t, python-lvm currently specifies "l" which is (long) ... this is very bad on i386 due to buildvalue being varargs. Patch attached and at:

http://james.fedorapeople.org/patches/build-value.patch

...added helper function, due to the needed cast.

 Also the F17 python-lvm just segfaults, and I have to hack patch out lvm_config_find_bool to make the F18 python-lvm work on F17 ... so would it be possible to release an official rebased python-lvm on F17?

Comment 1 Andy Grover 2012-11-30 00:31:10 UTC
Nice catch.

I'd be slightly happier with the casts in all the callsites rather than the helper function, I think. Any objections?

Regarding F17, sorry about that. I'll get on it.

BTW please note that python-lvm is now part of lvm2 proper, so the separate src pkg will be going away.

Comment 2 James Antill 2012-11-30 14:34:21 UTC
Created attachment 655083 [details]
New version of buildvalue patch without the helper

 No problem, here is a new version of the patch without the helper.

Comment 3 Andy Grover 2012-12-06 00:36:28 UTC
Applied to lvm2 and python-lvm repos. Thanks again!


Note You need to log in before you can comment on or make changes to this bug.