Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25877 - portage should run `sync` after every merge
Summary: portage should run `sync` after every merge
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 08:34 UTC by SpanKY
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

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


Attachments
emerge-sync.patch (f,604 bytes, patch)
2003-08-04 16:45 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-08-04 08:34:27 UTC
in the off chance that a box should die soon after a successful emerge, i think 
it would be good to have portage make sure that all data has been synced with 
the harddrive ... the slight lost in performance would be highly beneficial imo 
over the chance that a bunk emerge is actually considered 'valid' by portage.

note, i mean run sync after portage has qmerged, written /var/db/pkg/, and all 
that stuff ... so that is (1) call to sync per package
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-08-04 08:39:14 UTC
I'll talk to Nick about this as I'm not sure where to add this.
Comment 2 SpanKY gentoo-dev 2003-08-04 16:45:25 UTC
Created attachment 15510 [details, diff]
emerge-sync.patch

unless i'm mistaken i believe this is where it goes
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-08-04 22:52:43 UTC
I don't get the idea why having something emerged should be treated different from saving any file... how often does your box die?
Comment 4 SpanKY gentoo-dev 2003-08-05 20:41:17 UTC
i see it as a higher reliability factor 
 
and i make my box die pretty often ... i seem to have a knack for making 'stable' 
boxes not so stable, regardless of OS :) 
 
i demand a lot ! 
Comment 5 SpanKY gentoo-dev 2003-08-05 23:57:07 UTC
it seems to be working on my box ... i put a little print right after the sync call and every time ive emerged a package i see this:

>>> sys-apps/reiserfsprogs-3.6.11 merged.
SYNCING DISK ! :D
>>> sys-apps/baselayout-1.8.6.10 merged.
SYNCING DISK ! :D
>>> app-crypt/keylookup-2.2 merged.
>>> Recording app-crypt/keylookup in "world" favorites file...
SYNCING DISK ! :D
Comment 6 Brian Harring (RETIRED) gentoo-dev 2004-08-17 00:54:36 UTC
Current version is a lil scary for people doing parallel merges (world file is read once, outside of the mergelist loop), but your request is in portage.