Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102419 - $PKGDIR needs locking
Summary: $PKGDIR needs locking
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-13 12:02 UTC by Robin Johnson
Modified: 2022-10-20 02:30 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-08-13 12:02:05 UTC
$PKGDIR urgently needs locking added to it.

When mv is moving the file between devices, it is nessicarily atomic.
For large binpkgs, this is significent as the window can be quite large.

We need to acquire a lock for $PKGDIR/All/${PF}.tbz2 right before we try to 
move, and release it after we have created the symlink.

I've run into this with a $PKGDIR shared via NFS for a large cluster.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-11-06 13:43:43 UTC
*bump*
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-11-06 14:19:50 UTC
patch? :)
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-14 19:01:38 UTC
Is this urgent need for locking still the case in 2013? Has this been implemented in another way? Do we still need this to happen? This is one of the five oldest untouched open bugs, therefore please review this bug; thank you! :)
Comment 4 Zac Medico gentoo-dev 2013-02-14 19:06:28 UTC
Symlinks are no longer used, so maybe locking is no longer needed either?