nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Improve error checking in file offload read/write ops #152

Closed jphickey closed 2 years ago

jphickey commented 2 years ago

The read/write operations in file_offload.c - which offloads bundles to disk for persistence and to allow the RAM pool to be used for other purposes - have very minimal error checking.

In particular, there are cases where bundles may be only partially restored, but the error is not conveyed up to the caller and the incomplete bundle may be sent anyway. This may also be related/contributing to the issue described in #146