Re: Race to power off harming SATA SSDs

From: Boris Brezillon
Date: Mon May 08 2017 - 07:55:39 EST


On Mon, 8 May 2017 13:48:07 +0200
Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 8 May 2017 13:06:17 +0200
> Richard Weinberger <richard.weinberger@xxxxxxxxx> wrote:
>
> > On Mon, May 8, 2017 at 12:49 PM, Pavel Machek <pavel@xxxxxx> wrote:
> > > Aha, nice, so it looks like ubifs is a step back here.
> > >
> > > 'clean marker' is a good idea... empty pages have plenty of space.
> >
> > If UBI (not UBIFS) faces an empty block, it also re-erases it.
>
> Unfortunately, that's not the case, though UBI can easily be patched
> to do that (see below).

Sorry for the noise, I was wrong, UBI already re-erases empty blocks
[1].

[1]http://elixir.free-electrons.com/linux/latest/source/drivers/mtd/ubi/attach.c#L983