Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758857Ab2FAIAY (ORCPT ); Fri, 1 Jun 2012 04:00:24 -0400 Received: from a.ns.miles-group.at ([95.130.255.143]:47834 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753767Ab2FAIAX (ORCPT ); Fri, 1 Jun 2012 04:00:23 -0400 Message-ID: <4FC8768E.1010703@nod.at> Date: Fri, 01 Jun 2012 10:00:14 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120427 Thunderbird/12.0.1 MIME-Version: 1.0 To: Adrian Hunter CC: linux-mtd@lists.infradead.org, tglx@linutronix.de, dedekind1@gmail.com, linux-kernel@vger.kernel.org, Heinz.Egger@linutronix.de, tim.bird@am.sony.com Subject: Re: [PATCH] [RFC] UBI: Implement Fastmap support References: <1337771191-95358-1-git-send-email-richard@nod.at> <1337771191-95358-2-git-send-email-richard@nod.at> <4FC85780.9070200@intel.com> In-Reply-To: <4FC85780.9070200@intel.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBCA54CF66458531BF608E578" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1917 Lines: 48 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBCA54CF66458531BF608E578 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 01.06.2012 07:47, schrieb Adrian Hunter: > It looks like, if you lose power at this point, the old fastmap may hav= e > been erased but the new fastmap has not been written. That would mean > you lose the fastmap. Is that correct? I guess you need to write the > new fastmap first and then erase the old one. True. But why is this a problem? If we can recovers using a full scan after a power cut we are fine. By deleting the old fastmap after writing the new one we may run out of f= ree PEBs. E.g: Assume a fastmap needs 4 PEBs and we have only 2 PEBs available the = current approach works fine because after returning and deleting the old fastmap we have 6 PEBs avail= able and can write the new one. Thanks, //richard --------------enigBCA54CF66458531BF608E578 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQEcBAEBAgAGBQJPyHaSAAoJEN9758yqZn9eq8gIAJTl1iwx6RZTaE1GW35sKAsW 6tZV6ep+4kaDrhtsuAf3na88ng/nYNiyYmXCYw9QUr2KBDjbv8TE/9awrncZG/v2 z8xuhXR697JSTW930whbsg0N9RAfJXCjuJSsw2LlffFvBWDQHaRq+v4VESMs2hDS TD8UZcVd5jb86jqjkpOyQ3D33/QY/IzrtS+tcr4/svbOjpXvbu/8wmdDQEzvJD7a aY9yiip7AV1qY8IiIwpd8t6WAsjCWeDeaIZNA9WvH/G7tn9ZbgihTs7TKtnWAbaS elighN35N7sPXPasbfnt/YHwPU8zE1vBLHwCqTgpoRuJaBPGHpBf8RgZUZssS0o= =N/qi -----END PGP SIGNATURE----- --------------enigBCA54CF66458531BF608E578-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/