[RFC] mtd-utils: integck: add support for volume specific power-cut test
Artem Bityutskiy
dedekind1 at gmail.com
Mon Aug 19 10:55:18 EDT 2013
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 <loong/path/string> 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
More information about the linux-mtd
mailing list