Commit b284a08
泰友
fix: compatibility to image without ext table for blob cache
There are scenes that cache file is smaller than expect size. Such as:
1. Nydusd 1.6 generates cache file by prefetch, which is smaller than size in boot.
2. Nydusd 2.2 generates cache file by prefetch, when image not provide ext blob tables.
3. Nydusd not have enough time to fill cache for blob.
Equality check for size is too much strict for both 1.6
compatibility and 2.2 concurrency. This pr ensures blob size smaller
or equal than expect size. It also truncates blob cache when smaller
than expect size.
Signed-off-by: 泰友 <[email protected]>1 parent 6d7355d commit b284a08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments