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 — Latest diff uploaded
| Information | |
|---|---|
| stevenku | |
| AVX2 | |
| rel_avx_2_7_5 | |
| TWSD-1293 | |
| Reviewers | |
| ngurunathan, wli | |
Because the read and write operations of the
.infofile 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 originalxmlSaveFormatFileEnc()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:
- Added atomic write process
- Completed data durability guarantee
- Added UTF-8 validation
- Error handling and cleanup
- Header dependency adjustments (compilation impact)
Create VA & see /var/log/avxd.log:
save_xml_atomic: OK: valid UTF-8Array CLI:
AN(config)#sh sys res
