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

feat(cloud): Add volume import partial checks #1586

Merged
merged 4 commits into from
Jul 11, 2024

Commits on Jul 9, 2024

  1. refactor(cpio): Import 'cavaliergopher/cpio' and expose fields

    Importing is done to ensure further support is easy to do, as the
    library has been left mostly abandoned.
    
    The most important exposal is the raw CPIO header, needed for external
    processing.
    
    Although unused, it also exposes the name and entry padding for
    entries.
    
    Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
    craciunoiuc committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    04ce24a View commit details
    Browse the repository at this point in the history
  2. feat(cloud): Introduce partial checks for volume importing

    The following steps sum up what the new algorithm does:
    1.  Send the raw CPIO header -- wait for OK
    2.  Send the name of the file (NUL terminated) -- wait for OK
    2'. Stop if last entry detected
    3.  Send the file content | Link destination -- wait for OK
    
    At any time the volume-import unikernel can error out and report back
    the error to kraftkit to forward to the user.
    
    Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
    craciunoiuc committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    d8e019d View commit details
    Browse the repository at this point in the history
  3. fix(volume): Add back transmit progress

    Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
    craciunoiuc committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1e316b9 View commit details
    Browse the repository at this point in the history
  4. feat(cpio): Wait for oks in parallel

    Also prints statistics at the end and queries at start.
    
    Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
    craciunoiuc committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1ccea99 View commit details
    Browse the repository at this point in the history