All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Data loss during power off
@ 2002-06-26 15:34 Henrique Faria
  2002-06-27  8:01 ` Nikita Danilov
  0 siblings, 1 reply; 14+ messages in thread
From: Henrique Faria @ 2002-06-26 15:34 UTC (permalink / raw)
  To: reiserfs-list; +Cc: nikita

Does changing JOURNAL_MAX_TRANS_AGE and JOURNAL_MAX_COMMIT_AGE values make
any sense? Well, at least, it seemed to.
I read something about Reiser4 APIs to handle transactions, in the reiser
FAQs (question 47). Nikita Danilov wrote some words mentioning this feature.
I wonder if it could solve my problems.
By the way, when reiser4 will be available?
Thank you all,

Henrique R. Faria

On Wed, 26 Jun 2002 09:08:29 +0400, Oleg Drokin <green@namesys.com> escreveu
:

> De: Oleg Drokin <green@namesys.com>
> Data: Wed, 26 Jun 2002 09:08:29 +0400
> Para: Henrique Faria <henrique@streamworks.com.br>
> Assunto: Re: [reiserfs-list] Data loss during power off
> 
> 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
> 
> 
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Data loss during power off
@ 2002-06-25 21:09 Henrique Faria
  2002-06-26  0:31 ` Michael Chang
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Henrique Faria @ 2002-06-25 21:09 UTC (permalink / raw)
  To: reiserfs-list

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-06-27 19:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-26 15:34 Data loss during power off 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
  -- strict thread matches above, loose matches on Subject: below --
2002-06-25 21:09 Henrique Faria
2002-06-26  0:31 ` Michael Chang
2002-06-26  5:08 ` Oleg Drokin
2002-06-27 14:53 ` Chris Mason
2002-06-27 12:36   ` Henrique Faria
2002-06-27 16:48     ` Chris Mason

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.