public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Bao C. Ha" <baoha@sensoria.com>
To: <linux-mtd@lists.infradead.org>
Subject: Patch to prevent jffs2 from make changes to other filesystems
Date: Tue, 23 Oct 2001 13:46:17 -0700	[thread overview]
Message-ID: <014f01c15c03$c45a8b10$456c020a@SENSORIA> (raw)

I would like to propose the following patch to
temporarily fix the problem of jffs2 making
changes to other filesystems stored on MTD
partitions.

--- scan.c.orig Tue Oct 23 13:35:38 2001
+++ scan.c      Tue Oct 23 13:32:28 2001
@@ -214,7 +214,8 @@
                        noisy_printk(&noise, "jffs2_scan_eraseblock(): Magic
bit
mask 0x%04x not found at 0x%08x: 0x%04x instead\n", JFFS2_MAGIC_BITMASK,
ofs, no
de.magic);
                        DIRTY_SPACE(4);
                        ofs += 4;
-                       continue;
+                       /* continue; */
+                       return -EINVAL;
                }
                /* We seem to have a node of sorts. Check the CRC */
                nodetype = node.nodetype;

Thanks.
Bao

             reply	other threads:[~2001-10-23 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-23 20:46 Bao C. Ha [this message]
2001-10-23 21:55 ` Patch to prevent jffs2 from make changes to other filesystems David Woodhouse
2001-10-23 22:45   ` Bao C. Ha

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='014f01c15c03$c45a8b10$456c020a@SENSORIA' \
    --to=baoha@sensoria.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