From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com ([134.134.136.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBQmL-00009O-9F for linux-mtd@lists.infradead.org; Mon, 19 Aug 2013 14:49:57 +0000 Message-ID: <1376924118.2089.482.camel@sauron.fi.intel.com> Subject: Re: [RFC] mtd-utils: integck: add support for volume specific power-cut test From: Artem Bityutskiy To: Mats =?ISO-8859-1?Q?K=E4rrman?= Date: Mon, 19 Aug 2013 17:55:18 +0300 In-Reply-To: <1376923842.2089.480.camel@sauron.fi.intel.com> References: ,<1376919409.2089.463.camel@sauron.fi.intel.com> <1376923842.2089.480.camel@sauron.fi.intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: "linux-mtd@lists.infradead.org" Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2013-08-19 at 17:50 +0300, Artem Bityutskiy wrote: > On Mon, 2013-08-19 at 14:24 +0000, Mats Kärrman wrote: > > # echo "1" > /sys/kernel/debug/ubifs/ubi1_0/tst_recovery > > > > However, in the latter case, the flag is reset when the file system is > > remounted > > so the test continues without tst_recovery enabled. > > Ah, I see it now. > > Did you try if you can resolve the mount path into 'ubiX_Y' in integck, > so that one wouldn't need to pass this -P option? Check the recover_tested_fs() which uses get_tested_fs_mntent() which parses /proc/mounts. Can you do a similar thing and find the 'ubiX_Y' part, and then just write 1 to the sysfs path. -P would not be needed then at all. -- Best Regards, Artem Bityutskiy