Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: fix chunk map compatibility #1417

Merged
merged 1 commit into from
Sep 5, 2023

Commits on Sep 4, 2023

  1. 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]>
    imeoer committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    5e506f4 View commit details
    Browse the repository at this point in the history