From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: Data loss during power off Date: 27 Jun 2002 10:53:37 -0400 Message-ID: <1025189617.1657.19.camel@tiny> References: <20020626000904.22479.qmail@hm47.locaweb.com.br> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: In-Reply-To: <20020626000904.22479.qmail@hm47.locaweb.com.br> List-Id: Content-Type: text/plain; charset="us-ascii" To: Henrique Faria Cc: reiserfs-list@namesys.com On Tue, 2002-06-25 at 17:09, 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, The data logging patches also include data=ordered mode. Using that, plus setting the max trans age (or max batch count), will flush data blocks right away. I'm waiting for a tester to confirm I've fixed the page locking problem w/writepage in the current data logging patch, then I'll do a new release. -chris