Is the Zephyr NVS implementation robust during power cut?

We are evaluating the the NRF 5340 for a new project and we would like to know if the NVS implementation [1] provides protection against data corruption if the supply is unexpectedly lost during write operations. There is some procedural description in the documentation, but it does not cover e.g. updates to a record.

Clearly, failing a write is expected if power is lost during this procedure, I am interested to know if we lose any old data, e.g. the previous version of the NVS record being overwritten.

[1] docs.zephyrproject.org/.../nvs.html

Related