From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ajQHa-0005e3-Ey for linux-mtd@lists.infradead.org; Fri, 25 Mar 2016 11:52:02 +0000 Message-ID: <1458906697.615.20.camel@gmail.com> Subject: Re: ubiblock RW From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Ezequiel Garcia , Richard Weinberger Cc: Benson Young , "linux-mtd@lists.infradead.org" , David Gstir , Willy Tarreau Date: Fri, 25 Mar 2016 13:51:37 +0200 In-Reply-To: References: <56F4502D.3030902@nod.at> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2016-03-24 at 18:26 -0300, Ezequiel Garcia wrote: > > > Richard, what do you think? > > I'm definitely not fond of adding write support to ubiblock without > > turning it into a proper FTL. > > Otherwise it will be abused and will cause serious damage. > > > I'm not sure this statement makes much sense without actual numbers. Ezequel, could you re-summarize how the write support would be implemented? Read entire LEB, modify data block (512 bytes), atomically write the LEB? This would not perform well, but would probably work. Or you want to avoid atomic LEB change and just erase the LEB and write the entire LEB with the updated contents? This would probably be a bit faster, but not power-cut safe.