Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301022 - app-portage/portage-utils: qsize counts hardlinks as separate files
Summary: app-portage/portage-utils: qsize counts hardlinks as separate files
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 20:25 UTC by A.C.Heron
Modified: 2010-01-22 22:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A.C.Heron 2010-01-14 20:25:43 UTC
When calculating the package size qsize from app-portage/portage-utils-0.2.1 counts each file as many times as there are hardlinks to it.

Reproducible: Always

Steps to Reproduce:
qsize dev-util/git

Actual Results:  
425271.590 KB for dev-util/git-1.6.4.4


Expected Results:  
39456.403 KB


/usr/libexec/git-core/git has 97 hardlinks, which counts as additional 96*4115362 bytes or 385815.19 KB
Comment 1 Patrick Lauer gentoo-dev 2010-01-15 19:46:31 UTC

*** This bug has been marked as a duplicate of bug 301026 ***
Comment 2 Douglas Anderson 2010-01-16 20:03:51 UTC
Reopening, because I can take bug 301026, but someone else'll have to do this one (different program).
Comment 3 SpanKY gentoo-dev 2010-01-21 05:42:49 UTC
that's kind of annoying to have to track ... qsize maintains no information across file entries, and it will have to cache not only the inode, but the device it is stored on as well.
Comment 4 solar (RETIRED) gentoo-dev 2010-01-22 03:19:56 UTC
I don't think I'll be coding this feature in either.

Hardlinks maybe should be tagged in the VDB itself but the package mgr if there becomes a need. 
Till then I'm sorry but it seems nobody is insterested in coding this feature right now. 

However we probably would not reject any community patches that are written to yeild this functionaly as long as there is no overhead for normal usage.
Comment 5 A.C.Heron 2010-01-22 20:12:31 UTC
Can it at least check /var/db/pkg/.../.../SIZE and output both sizes if they don't match?
Comment 6 solar (RETIRED) gentoo-dev 2010-01-22 20:18:47 UTC
Please rephrase the question. I'm not sure what you are asking.
Comment 7 A.C.Heron 2010-01-22 22:45:22 UTC
In the /var/db/pkg/dev-util/git-1.6.4.4/ there is a file SIZE. I don't know exactly what is there, but it contains a number close the correct size of the installed package (maybe rounded up to account for the partially filled disk clusters). What is this size? Can qsize use it?