public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Russ Dill <russ.dill@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: RedBoot FIS Directory parsing bails out early
Date: Wed, 24 Aug 2005 00:17:20 +0000	[thread overview]
Message-ID: <1124842640.20120.10.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <f9d2a5e1050823154740e66385@mail.gmail.com>

On Tue, 2005-08-23 at 15:47 -0700, Russ Dill wrote:
> Deleted partitions cause the FIS directory parsing to bail out early,
> this is because in redboot, deleting a partition causes the first byte
> in the entry to be set to 0xff. The kernel is currently looking for
> 0xff as an end of table marker.
> 
> This means that if you create two partitions, ie, test1 and test2, and
> then delete test1, the kernel will no longer detect test1.
> 
> redboot.c should instead scan every entry in the FIS table, and throw
> out any entries that begin with 0xff, ie, change the break to a
> continue. The checksum check should also be changed  from a break to a
> continue (even though checksums in fis tables were never implemented
> anyway).
> 
> pseudo patch:
> 
>  struct fis_list *new_fl, **prev
>  
>  if (buf[i].name[0] == 0xff)
> -       break;
> +       continue;
>  if (!redboot_checksum(&buf[i]))
> -       break;
> +       continue;
> 

Care to provide a real patch ?

tglx

  reply	other threads:[~2005-08-24  0:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-23 22:47 RedBoot FIS Directory parsing bails out early Russ Dill
2005-08-24  0:17 ` Thomas Gleixner [this message]
2005-08-24  0:50   ` Russ Dill

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=1124842640.20120.10.camel@tglx.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=russ.dill@gmail.com \
    /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