FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 03-14-2009, 01:55 AM
Allan McRae
Default libalpm: sync changes to disc when appropriate

Dan McGee wrote:

We don't make calls to fsync() or fdatasync() when we are attempting to do
something transactionally, such as writing out one of our DB entries. Add a
call to fdatasync() when we write DB entries, and also ensure we sync our
log changes to disc whenever we close it.

Another important thing to ensure is that we commit removals of DB entries.
The method isn't necessarily pretty, but it works in _alpm_db_remove().

This looks good to me.

Just wonding how much overhead the fsyncing adds? Have you noticed any
speed decrease when running with this patch? Not that there is much
choice here...


pacman-dev mailing list

Thread Tools

All times are GMT. The time now is 10:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org