Dear Ayoub, In message <20210909115257.14147-1-ayoub.z...@embexus.com> you wrote: > This commit adds the command ubi swap to swap an ubi volumes. > The format of the command is: ubi swap <volume_a> <volume_b>. > To enable this command, the option CMD_UBI_SWAPVOL must be selected.
May I ask what this command is good for, i. e. what is the intended use case? I have the feeling that you might want to do something which requires an atomic operation, but you should be aware that the implementation is NOT atomic - even worse: in case of problems there is not even a way to fall back to the old state. So if you think to use this for example for reliable software updates, then you have a big problem here. Or am I missing something? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Niklaus Wirth has lamented that, whereas Europeans pronounce his name correctly (Ni-klows Virt), Americans invariably mangle it into (Nick-les Worth). Which is to say that Europeans call him by name, but Americans call him by value.