-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix chunk map compatibility
The blob cache file of nydusd v2.2 and <=v2.1 are in different formats, which are not compatible. Should use different chunk map files for them, in order to upgrade or downgrade smoothly. For the nydusd <=v2.1, the files in blob cache directory: ``` $blob_id $blob_id.chunk_map ``` For the nydusd =v2.2, the files in blob cache directory: ``` $blob_id.blob.data $blob_id.chunk_map ``` NOTE: nydusd (v2.2) maybe use the chunk map file of nydusd(<=v2.1), it will cause the corrupted blob cache data to be read. For the nydusd of current patch, the files in blob cache directory: ``` $blob_id.blob.data $blob_id.blob.data.chunk_map ``` NOTE: this will discard the old blob cache data and chunk map files. Signed-off-by: Yan Song <[email protected]>
- Loading branch information
Showing
4 changed files
with
14 additions
and
15 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
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
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
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