All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Henrique Faria <henrique@streamworks.com.br>
Cc: reiserfs-list@namesys.com
Subject: Re: Data loss during power off
Date: Wed, 26 Jun 2002 09:08:29 +0400	[thread overview]
Message-ID: <20020626090829.C5198@namesys.com> (raw)
In-Reply-To: <20020626000904.22479.qmail@hm47.locaweb.com.br>

Hello!

   This (almost) cannot be done. Of course you may resort to
   opening files with O_SYNC or issuing sync/fsync calls after each write,
   this way you'd lose even less data by the cost of speed of fs operations.
   At least with this approach you may be sure that after sync/fsync returned
   (or write in case of oepning with O_SYNC), data are safe on the media.
   (This is assuming that your flash memory card does not do any cheating
    and does not report it have completed command before actual writing).

Bye,
    Oleg
On Tue, Jun 25, 2002 at 09:09:04PM +0000, Henrique Faria wrote:
> Hello!
> We're using reiserfs 3.6.25 and linux 2.4.18, in a 256 MB flash memory card,
> to develop a game. Data is written all the time, in local files, by the main
> process. The "power off" test has to be done, for the machines will be
> turned off with no shutdown process.
> What's happening: pressing the power off button (during data writing) makes
> data to be lost. Is it possible to force the data to be written in the file
> system? I tried to change the JOURNAL_MAX_TRANS_AGE and the
> JOURNAL_MAX_COMMIT_AGE consts. Less data is lost, but I still get some loss.
> Thanks,
> 
> Henrique R. Faria

  parent reply	other threads:[~2002-06-26  5:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-25 21:09 Data loss during power off Henrique Faria
2002-06-26  0:31 ` Michael Chang
2002-06-26  5:08 ` Oleg Drokin [this message]
2002-06-27 14:53 ` Chris Mason
2002-06-27 12:36   ` Henrique Faria
2002-06-27 16:48     ` Chris Mason
  -- strict thread matches above, loose matches on Subject: below --
2002-06-26 15:34 Henrique Faria
2002-06-27  8:01 ` Nikita Danilov
2002-06-27  8:53   ` Philippe Gramoullé
2002-06-27  8:58     ` Nikita Danilov
2002-06-27 14:52   ` Henrique Faria
2002-06-27 17:58     ` Nikita Danilov
2002-06-27 15:34       ` Henrique Faria
2002-06-27 19:08         ` Chris Mason

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=20020626090829.C5198@namesys.com \
    --to=green@namesys.com \
    --cc=henrique@streamworks.com.br \
    --cc=reiserfs-list@namesys.com \
    /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.