Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 102419

Summary: $PKGDIR needs locking
Product: Portage Development Reporter: Robin Johnson <robbat2>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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?