Bug 3475

Summary: Calling sync on large filesystems when not always necessary
Product: buildroot Reporter: Danny Staple <orionrobots>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Danny Staple 2011-03-11 16:20:22 UTC
When using build root to cross compile for other devices, especially when doing many builds (multiple targets), on a CI system with 10s of gigs of ram and many intermediate targets, then sync is not really desirable here.

The makedevs step makes a call to /bin/sync.

I am suggesting a "--nosync" be introduced so buildroot will not sync the drives then? While of course preserving existing behaviour for the majority that don't find any problems.
Comment 1 Danny Staple 2011-03-11 16:22:15 UTC
For info - this sync is called as a shell out to "/bin/sync" in makedevs.c.


if (system("/bin/sync"))
        bb_error_msg("sync failed, continuing anyway");
Comment 2 Peter Korsgaard 2011-03-11 23:18:27 UTC
I think it makes more sense to simply get rid of the sync. There's no real reason why we would need to sync in the first place.
Comment 3 Peter Korsgaard 2011-03-12 21:29:32 UTC
Removed in git, thanks