Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@sigma-star.at>
To: Rock Lee <rockdotlee@gmail.com>
Cc: Richard Weinberger <richard.weinberger@gmail.com>,
	linux-mtd@lists.infradead.org
Subject: Re: Detach the ubi device of rootfs
Date: Tue, 10 Oct 2017 09:33:27 +0200	[thread overview]
Message-ID: <2001363.51LN5LPS4v@blindfold> (raw)
In-Reply-To: <CAL-1w2vC4-fesPcjKHTtn3N9xNOA7Xa7PZ-O0Pu8VD5mg-t2NA@mail.gmail.com>

Am Dienstag, 10. Oktober 2017, 04:02:09 CEST schrieb Rock Lee:
> > Why do you think you need to detach upon reboot?
> > UBI and UBIFS are designed to face power-cuts at any time.
> > Although, sane setups with initramfs/systemd unmount also the rootfs
> > upon reboot.
> 
> When reboot, UBIFS will be remount as read-only, from the filesystem
> part, it is safe, because there is no data write to it.  I see ubi
> background thread will exit when ubi detach, and there would no
> scrubing anymore, I am sure reboot after detach is safe enough in UBI
> layer. I am just curious what will happen when reboot the system while
> ubi is scrubing. Will it damage the flash if this situation happens a
> lot?

Scrubbing is an atomic operation, just like copying a LEB.
What problem do you have in mind?

Thanks,
//richard

-- 
sigma star gmbh - Eduard-Bodem-Gasse 6 - 6020 Innsbruck - Austria
ATU66964118 - FN 374287y

  reply	other threads:[~2017-10-10  7:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 11:11 Detach the ubi device of rootfs Rock Lee
2017-10-09 12:05 ` Richard Weinberger
2017-10-10  2:02   ` Rock Lee
2017-10-10  7:33     ` Richard Weinberger [this message]
2017-10-11  1:52       ` Rock Lee

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=2001363.51LN5LPS4v@blindfold \
    --to=richard@sigma-star.at \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard.weinberger@gmail.com \
    --cc=rockdotlee@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