UBI Create or Update Volume

Artem Bityutskiy dedekind at infradead.org
Wed Jun 17 05:56:30 EDT 2009

[Very difficult to read your email due to


On Wed, 2009-06-17 at 09:33 +0000, BRIJESH SINGH wrote:
> Hi Artem, 
>      Just came across the ubi_change_vtbl_record function. If first copy is written successfully and error occurs while writing second copy, this function still returns error. And hence the creation or change in Volume becomes unsuccessful. So applications consider it failure.
>    But if I unmount now, (clean or unclean) the first copy will become valid and second will be called corrupted (during mount time). It's not correct.
>    So should ubi_change_vtbl_record  call flush wl and  return success? Because 2nd copy(old) is unmapped till now.And should UBI go to read-only mode?

Yes, sounds right. Would you send a patch?

Best regards,
Artem Bityutskiy (Битюцкий Артём)

More information about the linux-mtd mailing list