From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from mms2.broadcom.com ([216.31.210.18])
by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux))
id 1PcwUD-0000Mu-AA
for linux-mtd@lists.infradead.org; Wed, 12 Jan 2011 08:55:22 +0000
From: "Brian Norris"
-o sync option when mounting UBIFS; however, the file
- system performance will drop - be careful; Also remember that UBIFS
+ system performance will drop - be careful. Also remember that UBIFS
mounted in synchronous mode provides less guarantees than JFFS2 - refer
this section for details.fsync() for all important files you change; of
course, there is no need to synchronize "throw-away" temporary files;
- Just think how important is the file data and decide; and do not
+ Just think how important the file data is and decide; do not
use fsync() unnecessarily, because this will hit the
- performance;fdatasync(), in which cases only data changes will be
flushed, but not inode meta-data changes (e.g., "mtime"
or permissions); this might be more optimal than using
fsync() if the synchronization is done often, e.g., in
- a loop; otherwise just stick with fsync();fsync().
sync command may be used, but it
- synchronizes whole file system which might be not very optimal; and
- there is a similar libc sync() function;sync() function.
O_SYNC flag of the
open() call; this will make sure all the data (but not
@@ -425,7 +425,7 @@ following is a list of useful hints and advices.
operation returns; but in general, it is better to use
fsync(), because O_SYNC makes each
write to be synchronous, while fsync() allows to
- accumulate many writes and synchronize them at once;UBIFS file system has been designed for raw flash. It doesn't work with block @@ -1351,12 +1351,12 @@ requirements.