Linux NILFS development
 help / color / mirror / Atom feed
From: David Arendt <admin-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
To: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
Cc: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
Subject: Re: error on kernel 2.6.29 while running cleaner on a 1tb volume
Date: Sun, 29 Mar 2009 17:25:32 +0200	[thread overview]
Message-ID: <49CF92EC.2020803@prnet.org> (raw)
In-Reply-To: <20090328.215257.15833655.ryusuke-sG5X7nlA6pw@public.gmane.org>

Hi,

Many thanks for the patch.
I have seen that you already have included the latest patch in git so I 
used the git version. I have done a backup/restore on my nilfs2 
partitions in order to be sure to start with a clean state. So far no 
corruption did occur and and all used segments have been marked dirty. 
As generally the corruption only occurred after several times of 
cleaning, I can only say in a few days, if the patch really solved the 
problem.

I have however had the following result on a fresh restored 1tb 
partition where the cleaner has not been  run yet:

server ~ # lssu -a /dev/sda10 | grep -e "2009-" | grep -v -e "-d-"
               14335  2009-03-29 01:44:28  ad-        2048
               14589  2009-03-29 01:46:23  ad-         941

For all other partitions I have only one segment marked as active. Can 
it be a normal case for nilfs2 that 2 segments are marked as active or 
is there something weird going on here ? dmesg returns nothing special 
about this volume. There has also been no system crash so this volume 
should have been mounted/unmounted correctly.

Bye,
David Arendt

Ryusuke Konishi wrote:
> Hi,
> On Sat, 28 Mar 2009 09:09:27 +0100, David Arendt <admin-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org> wrote:
>   
>> Hi,
>>
>> today I have tried the lssu on a dedicated server running nilfs and here 
>> I had the following result:
>>
>> fr ~ # lssu -a /dev/sda2 | grep -e "2009-" | grep -v -e "-d-"
>>                 2558  2009-03-23 16:59:05  ---        2048
>>                 4967  2009-03-28 09:07:10  ad-        1928
>>
>> so I suppose corruption will soon occur here.
>>     
>
> Oh, it would come.
>
>   
>> Is there something I can do to manually mark it as dirty or should I go 
>> the backup/restore route ?
>>     
>
> No, sorry.  You may as well go the backup/restore route.
>
> BTW, I found a bug in sufile that may relate to this problem.  The
> following patch fixes the bug. (I'm now testing this)
>
> If I can confirm that the patch has effect on the dirty flag
> evaporation, I will release an update ASAP.
>
> Othewise, I'll continue debugging.
> Please try the patch in the meantime.
>
> Regards,
> Ryusuke Konishi
>
> diff --git a/fs/sufile.c b/fs/sufile.c
> index e64a5de..0ea8558 100644
> --- a/fs/sufile.c
> +++ b/fs/sufile.c
> @@ -553,7 +553,6 @@ int nilfs_sufile_set_error(struct inode *sufile, __u64 segnum)
>  
>  	nilfs_segment_usage_set_error(su);
>  	kunmap_atomic(kaddr, KM_USER0);
> -	brelse(su_bh);
>  
>  	kaddr = kmap_atomic(header_bh->b_page, KM_USER0);
>  	header = nilfs_sufile_block_get_header(sufile, header_bh, kaddr);
>   

  parent reply	other threads:[~2009-03-29 15:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25  5:22 error on kernel 2.6.29 while running cleaner on a 1tb volume David Arendt
     [not found] ` <49C9BF81.6090203-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
2009-03-25 11:18   ` admin-/LHdS3kC8BfYtjvyW6yDsg
2009-03-25 17:19   ` Ryusuke Konishi
     [not found]     ` <20090326.021932.61004088.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-27  5:18       ` David Arendt
     [not found]         ` <49CC6193.9040900-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
2009-03-27  5:55           ` David Arendt
     [not found]             ` <49CC6A6C.9060006-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
2009-03-27  6:20               ` Ryusuke Konishi
     [not found]                 ` <20090327.152005.04656990.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-27 10:47                   ` Ryusuke Konishi
     [not found]                     ` <20090327.194735.32664212.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-27 11:13                       ` admin-/LHdS3kC8BfYtjvyW6yDsg
2009-03-28  8:09                       ` David Arendt
     [not found]                         ` <49CDDB37.9030603-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
2009-03-28 12:52                           ` Ryusuke Konishi
     [not found]                             ` <20090328.215257.15833655.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-29 15:25                               ` David Arendt [this message]
     [not found]                                 ` <49CF92EC.2020803-/LHdS3kC8BfYtjvyW6yDsg@public.gmane.org>
2009-03-29 16:38                                   ` Ryusuke Konishi
2009-03-27  5:58           ` Ryusuke Konishi
     [not found]             ` <20090327.145831.16149916.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-27 11:20               ` admin-/LHdS3kC8BfYtjvyW6yDsg
     [not found]                 ` <44728.212.24.212.169.1238152837.squirrel-YfwCgBv0H3oBXFe83j6qeQ@public.gmane.org>
2009-03-27 11:36                   ` Ryusuke Konishi

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=49CF92EC.2020803@prnet.org \
    --to=admin-/lhds3kc8bfytjvyw6ydsg@public.gmane.org \
    --cc=ryusuke-sG5X7nlA6pw@public.gmane.org \
    --cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox