Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 03-17-2009, 02:50 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 95,600

Rep: Reputation: 96
LXer: ext4 vs fsync, my take

Published at LXer:

There has been a lot of discussion about the ext4 data loss issue, and I see a lot of misconceptions, both about why rename() is used and what guarantees POSIX gives. Iíll try to give the background, and then my opinion on the situation. There are two basic ways to update a file. You can either truncate the old file and write the new contents, or you can write the new contents to a temporary file and rename it over the old file when finished. The rename method have several advantages, partly based on the fact that rename is atomic.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Possible data loss in Ext4 LXer Syndicated Linux News 1 03-12-2009 11:56 AM
LXer: Anatomy of ext4 LXer Syndicated Linux News 0 02-23-2009 09:50 AM
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 03:58 PM
fflush and fsync? power123 Programming 6 11-03-2005 12:04 AM
fsync() is slow on some systems brian_p_sully Linux - General 0 05-06-2004 10:58 AM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration