TWSD-1293 : Incorrect info is displaying in the "show system Resource" CLI as well as in webUI

Review Request #1321 — Created Jan. 20, 2026 and submitted

stevenku
AVX2
rel_avx_2_7_5
TWSD-1293
ngurunathan, wli

Because the read and write operations of the .info file cannot guarantee atomicity, and there are many conditions that can trigger this problem, the 0x98 byte is an invalid UTF-8 start byte.
The writing process of the original xmlSaveFormatFileEnc() has been modified to complete the atomic write and data integrity protection mechanism, in order to prevent .info / XML files from being damaged due to non-atomic writes or illegal UTF-8 bytes.

Main changes explanation:

  1. Added atomic write process
  2. Completed data durability guarantee
  3. Added UTF-8 validation
  4. Error handling and cleanup
  5. Header dependency adjustments (compilation impact)

Create VA & see /var/log/avxd.log:

save_xml_atomic: OK: valid UTF-8

Array CLI:

AN(config)#sh sys res
Description From Last Updated

I think we don't need reject this explicitly. The is caught by the else part anyway.

wliwli
Loading...