public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: "Prins Anton (ST-CO/ENG1.1)" <Anton.Prins@nl.bosch.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	"Mats Kärrman" <Mats.Karrman@tritech.se>,
	"dedekind1@gmail.com" <dedekind1@gmail.com>
Subject: Re: UBIFS failure & stable page writes
Date: Thu, 13 Jun 2013 16:41:14 +0300	[thread overview]
Message-ID: <51B9CBFA.70103@intel.com> (raw)
In-Reply-To: <85D877DD6EE67B4A9FCA9B9C3A4865670C3F1A3C5D@SI-MBX14.de.bosch.com>

On 13/06/13 16:31, Prins Anton (ST-CO/ENG1.1) wrote:
> We decided not to patch for this weekend, but onlty make an additional logging in UBIFS:
>
> diff -purN a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c
> --- a/fs/ubifs/orphan.c	2013-06-13 12:19:58.490931170 +0200
> +++ b/fs/ubifs/orphan.c	2013-06-13 12:17:13.014931462 +0200
> @@ -300,6 +300,9 @@ static int write_orph_node(struct ubifs_
>  	for (i = 0; i < cnt; i++) {
>  		orphan = cnext;
>  		orph->inos[i] = cpu_to_le64(orphan->inum);
> +		if (orph->inos[i] < UBIFS_FIRST_INO) {
> +			printk(KERN_ERR "ERROR: Wrong ino in orphan list[%lu]: %lu\n", (unsigned long)i, (unsigned long)orph->inos[i]);
> +		}
>  		cnext = orphan->cnext;
>  		orphan->cnext = NULL;
>  	}
>
> This to make sure if UBIFS itself writes a node '0' or '1'... and it is forced by UBI, NAND, Peripheral or NAND-Device.
> If there is a relation between logging and failing after reboot it would make sense... Means a lot of analyzing; but we have to find it!

We know UBIFS writes the '0' or '1' because the CRC is correct.  UBIFS would
complain loudly if it were not.

>
> Next step is to apply patches and to test again:
> http://git.infradead.org/ubifs-2.6.git/commit/8afd500cb52a5d00bab4525dd5a560d199f979b9
> http://git.infradead.org/ubifs-2.6.git/commit/2928f0d0c5ebd6c9605c0d98207a44376387c298
>
> And hopefully we get rid of some unexpected orphan nodes.
>
> How realistic is it that the double orphan free causes our problem?
> Mats, are you sure the patches mentioned above are also not in your UBIFS?
>
>
>

  reply	other threads:[~2013-06-13 13:36 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <85D877DD6EE67B4A9FCA9B9C3A4865670C3E8CB9B7@SI-MBX14.de.bosch.com>
     [not found] ` <4BE1E71893EF1E4F9E9DD99FB4EBF0032C02EA2D44@SI-MBX02.de.bosch.com>
     [not found]   ` <85D877DD6EE67B4A9FCA9B9C3A4865670C3E8CBA85@SI-MBX14.de.bosch.com>
2013-05-27 12:18     ` UBIFS failure & stable page writes Jan Kara
2013-05-27 13:13       ` Prins Anton (ST-CO/ENG1.1)
2013-05-28  2:57         ` Artem Bityutskiy
2013-05-28  7:07           ` Prins Anton (ST-CO/ENG1.1)
2013-05-28  7:44             ` Artem Bityutskiy
2013-05-28  8:18               ` Prins Anton (ST-CO/ENG1.1)
2013-05-28  9:11                 ` Artem Bityutskiy
2013-05-28 11:13                   ` Prins Anton (ST-CO/ENG1.1)
2013-05-29  6:49                     ` Artem Bityutskiy
2013-05-29 11:06                       ` Prins Anton (ST-CO/ENG1.1)
2013-05-31  9:51                       ` Prins Anton (ST-CO/ENG1.1)
2013-06-03  6:01                         ` Artem Bityutskiy
2013-06-11 12:16                           ` Prins Anton (ST-CO/ENG1.1)
2013-06-12  7:58                             ` Adrian Hunter
2013-06-12  8:28                               ` Prins Anton (ST-CO/ENG1.1)
2013-06-12 11:40                                 ` Adrian Hunter
2013-06-12 11:13                               ` Prins Anton (ST-CO/ENG1.1)
2013-06-12 12:00                                 ` Adrian Hunter
2013-06-12 11:57                                   ` Prins Anton (ST-CO/ENG1.1)
2013-06-12 13:09                                     ` Adrian Hunter
2013-06-12 13:57                                       ` Prins Anton (ST-CO/ENG1.1)
2013-06-13 10:54                                         ` Mats Kärrman
2013-06-13 13:31                                           ` Prins Anton (ST-CO/ENG1.1)
2013-06-13 13:41                                             ` Adrian Hunter [this message]
2013-06-13 14:02                                               ` Prins Anton (ST-CO/ENG1.1)
2013-06-15 22:25                                             ` Mats Kärrman
2013-06-13 19:24                                           ` Prins Anton (ST-CO/ENG1.1)
2013-06-15 22:45                                             ` Mats Kärrman
2013-06-17 11:20                                               ` Prins Anton (ST-CO/ENG1.1)
2013-06-18  6:31                                               ` Prins Anton (ST-CO/ENG1.1)
2013-06-18  7:01                                                 ` Adrian Hunter
2013-06-18  7:17                                                   ` Prins Anton (ST-CO/ENG1.1)
2013-06-25  8:21                                                   ` Prins Anton (ST-CO/ENG1.1)
2013-06-28  9:05                                                     ` Mats Kärrman
2013-06-28  9:27                                                       ` Prins Anton (ST-CO/ENG1.1)
2013-07-25 13:18                                                       ` Prins Anton (ST-CO/ENG1.1)
2013-06-12  7:12                           ` Prins Anton (ST-CO/ENG1.1)
2013-05-28 13:00                   ` Prins Anton (ST-CO/ENG1.1)
2013-06-13  7:41                     ` Adrian Hunter
2013-05-28  8:15           ` Prins Anton (ST-CO/ENG1.1)
2013-05-28  9:09             ` Artem Bityutskiy

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=51B9CBFA.70103@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=Anton.Prins@nl.bosch.com \
    --cc=Mats.Karrman@tritech.se \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.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