public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Kaima Ko <kaimi2005@yahoo.com>
To: linux-mtd@lists.infradead.org
Subject: Finding a valid solution for upgrading an in-use jffs2 filesystem
Date: Wed, 3 Sep 2008 18:58:22 -0700 (PDT)	[thread overview]
Message-ID: <342445.15201.qm@web44904.mail.sp1.yahoo.com> (raw)

Hi all,

I have a jffs2 partition being mounted rw. Some executables on this jffs2
are being loaded and run in RAM. And I am using low-level erase/copy 
(flash_erase from mtd-util and dd command) to upgrade this jffs2 partition 
while those executables running (and my mission is to keep them running during upgrading). I am sure that during the upgrading time, all those 
executables (and also other applications in my system) don't access the jffs2 file system. But the upgrading isn't always successful. Very seldom, 
but it still happened that the kernel hangs during flash erase/write. I 
think the jffs2 garbage collector may be the cause (though I read that the 
gc only starts when some app requires more space, but during low-level 
erase/write and no app accesses the jffs2 so the gc would not run). To be 
sure, I killed the gc daemon before upgrading. Since then, I don't see the 
problem happens again.

But with limited understanding about jffs2 and filesytem in general, I am so afraid that the things I've done still isn't a valid solution for 
upgrading an in-use jffs2 filesystem. Can gc be the cause of the case of 
kernel hang? Can the gc automatically starts again after I kill it? Is 
there any other thing I must consider?

Thank you!
KM




      

                 reply	other threads:[~2008-09-04  1:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=342445.15201.qm@web44904.mail.sp1.yahoo.com \
    --to=kaimi2005@yahoo.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