public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* ubifs robustness with early power cut warning
@ 2017-09-29 23:20 Doug Crawford
  2017-09-30 16:19 ` Richard Weinberger
  2017-10-02  8:06 ` Kees Trommel
  0 siblings, 2 replies; 10+ messages in thread
From: Doug Crawford @ 2017-09-29 23:20 UTC (permalink / raw)
  To: linux-mtd

We have an embedded system with an early power loss warning.  The
power supply drives a powerdown signal connected to a GPIO pin on the
CPU.  When AC power is switched off the power supply drives this
signal low for 500 milliseconds before the CPU gets held in reset.  If
AC power is switched back on before 500 milliseconds the powerdown
signal goes high again and the system is expected to continue running
normally.

I am wondering if there is a way to easily modify ubifs/ubi such that
when the powerdown gpio is low VFS or UBIFS or UBI freezes or pauses
further writes to the NAND.  If powerdown recovers to high again then
the filesystem would unfreeze and allow further writes?  Has anyone
implemented something like this before?  I know UBIFS/UBI is designed
to be very resilient to power cuts, but I am thinking this technique
might make the system even more resilient.  If I were to make this
change which file would be the right one to hook into:
fs/ubifs/super.c?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-10-03  7:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29 23:20 ubifs robustness with early power cut warning Doug Crawford
2017-09-30 16:19 ` Richard Weinberger
2017-10-02 16:14   ` Doug Crawford
2017-10-02 16:45     ` Richard Weinberger
2017-10-02 17:33       ` Doug Crawford
2017-10-02 18:03         ` Richard Weinberger
2017-10-02  8:06 ` Kees Trommel
2017-10-02 11:35   ` Richard Weinberger
2017-10-03  6:57     ` Kees Trommel
     [not found]     ` <7b89bbfe-8503-a50a-0271-09d69a99eeec@aimvalley.nl>
2017-10-03  7:26       ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox