-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've encountered an issue in a cluster, where the tetragon bugtool files were not complete. After debugging it seems that not all contents of the files were copied. This patch tries to handle this problem by getting the size of the file before the copy. If it is succesful in doing so, then it checks whether we have read everything and if not it returns an error. There is already support for handling partial reads in the code, so after this patch I am able to read the full size of the files. Signed-off-by: Kornilios Kourtis <[email protected]>
- Loading branch information
Showing
1 changed file
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters