From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryusuke Konishi Subject: Re: nilfs2 fails to mount after io/error Date: Sun, 07 Dec 2008 12:55:48 +0900 (JST) Message-ID: <20081207.125548.06356389.ryusuke@osrg.net> References: <20081204140431.ec72f1ec.adrian@blinkenlights.ch> <20081207.040509.20004012.ryusuke@osrg.net> <20081206195308.GA11115@aardappel.13thmonkey.org> Reply-To: NILFS Users mailing list Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081206195308.GA11115-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: users-bounces-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org Errors-To: users-bounces-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org To: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org, reinoud-S783fYmB3Ccdnm+yROfE0A@public.gmane.org On Sat, 6 Dec 2008 20:53:08 +0100, Reinoud Zandijk wrote: > Hi folks, hi Ryusuke, > > On Sun, Dec 07, 2008 at 04:05:09AM +0900, Ryusuke Konishi wrote: > > On Thu, 4 Dec 2008 14:04:31 +0100, Adrian Ulrich wrote: > > Sorry to keep you waiting. ;-) > > > > I will attach a patch against nilfs2-utils-2.0.6, which adds the > > tool 'fsck0.nilfs2'. > > > > # fsck0.nilfs2 > > > > will, hopefully, correct your partition. > > (I'm not sure because it's not yet tested enough) > > looks nice Ryusuke. Could the problem be averted though by *only* writing the > superblock on dismount or when the origional block would be overwritten. > Seperated by a disc flush of course :) Well, unless NILFS itself had destroyed data by bugs, the filesystem should have a very good chance to be salvaged by only modifying the superblock like this tool does. The GC may have reused data blocks needed by the re-selected old checkpoint, but it is likely very few since there is time lag from when blocks are marked unused to when they are actually overwritten under the current GC policy (i.e. FIFO order poclicy). Is this answering your question? Regards, Ryusuke Konishi