In my application, I have been using the meta support to add CRC to my files.
Since I receive the files in chunks, over a wireless link, I don't update the CRC until I am certain I have received all of the data... so naively, the CRC field is either -1 for a new file (erased flash) or something valid.
When a file is opened with O_TRUNC or otherwise truncated, it would be nice if I had a way to invalidate this metadata.
In my application, I have been using the
meta
support to add CRC to my files.Since I receive the files in chunks, over a wireless link, I don't update the CRC until I am certain I have received all of the data... so naively, the CRC field is either -1 for a new file (erased flash) or something valid.
When a file is opened with O_TRUNC or otherwise truncated, it would be nice if I had a way to invalidate this metadata.