All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Sharonov <sergei.sharonov@halliburton.com>
To: linux-mtd@lists.infradead.org
Subject: atomic file operations
Date: Tue, 22 Mar 2005 21:57:30 +0000 (UTC)	[thread overview]
Message-ID: <loom.20050322T224733-491@post.gmane.org> (raw)

Hello,

I am working on a logging application where a (large) log file is appended 
with 1 kByte data chunks. I cannot miss a chunk or duplicate a chunk in 
case of a power failure. Kermit will be used to ensure atomicity for 
incomming data chunks. Now, the question is what file operations on JFFS2 
are guaranteed to be atomic/transactional? 
Is a write of 1024 bytes atomic? 
Does it relate to the page size in any way? BTW I am using NAND and the page 
may vary between 512 and 2048 bytes depending on a device.
Is file rename atomic?
Other file operations?

Second issue is: How badly these small chunks will affect my mount time?

Thanks in advance

Sergei Sharonov

             reply	other threads:[~2005-03-22 22:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22 21:57 Sergei Sharonov [this message]
2005-03-23  9:39 ` atomic file operations Estelle HAMMACHE
2005-03-23 20:50   ` Sergei Sharonov
2005-03-24 10:11     ` Estelle HAMMACHE
2005-03-24 10:53       ` Artem B. Bityuckiy
2005-03-24 11:59         ` Estelle HAMMACHE
2005-03-24 12:17           ` Artem B. Bityuckiy
2005-03-24 17:28         ` Sergei Sharonov
2005-03-24 19:32           ` Artem B. Bityuckiy
2005-03-24 22:00         ` David Woodhouse
2005-03-25  8:18           ` Artem B. Bityuckiy
2005-03-24 21:59     ` David Woodhouse
2005-03-25 16:18 ` Sergei Sharonov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20050322T224733-491@post.gmane.org \
    --to=sergei.sharonov@halliburton.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.