Possible empty store or config files when disk is full #117

Closed
opened 2025-11-20 05:06:31 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @mlsmaycon on GitHub (Feb 20, 2022).

Originally assigned to: @mlsmaycon on GitHub.

When the disk is full we may encounter a case that the store file that gets replaced by an empty file. This happens because the ioutil.WriteFile truncates the target file before writing data into it.

Originally created by @mlsmaycon on GitHub (Feb 20, 2022). Originally assigned to: @mlsmaycon on GitHub. When the disk is full we may encounter a case that the store file that gets replaced by an empty file. This happens because the [ioutil.WriteFile](https://pkg.go.dev/io/ioutil#WriteFile) truncates the target file before writing data into it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#117