[PATCH] UBI: allow atomic updates to sychronously erase old PEB

Artem Bityutskiy dedekind1 at gmail.com
Wed Apr 11 12:04:25 EDT 2012


On Wed, 2012-04-11 at 15:14 +0200, Joel Reardon wrote:
> This is a proposal for adding an immediate mode for atomic updates of LEBs in
> UBI. The idea is that, if the erase parameter is non-zero, then the old PEB
> will be erase after the new PEB is written, but before the function returns. It
> will not go into a work queue. This is for security-relevant situations where,
> for instance, the user needs assurance that sensitive information on an
> eraseblock is actually gone after the update.

Amended the commit message, and actually squashed 2 patches to preserve
bisectability.

I've pushed this to the master branch.

I've also re-based your 'joel' branch on top of the master branch.

Your old branch is saved in 'joel_old'.

I did this because there were minor a minor conflict with other UBIFS
changes, so I thought it makes sense to rebase now.

Some tips.

1. save all your changes.
2. checkout the 'joel' branch
3. git fetch -f
4. git reset --hard origin/joel

This will let you update to the latest joel.

git checkout -b jeol_old origin/joel_old

will give you your old stuff.

Yes, sorry, I told you I won't rebase but then I noticed small conflicts
and decided that it is better if you are up-to-date. If you are unhappy
- let me know and I'll return you to the old stuff and will apply this
patch there.

Thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120411/2355faf4/attachment.sig>


More information about the linux-mtd mailing list