8000 stage0/{run,prepare}: remove ondisk verification by euank · Pull Request #3623 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

stage0/{run,prepare}: remove ondisk verification #3623

Merged
merged 4 commits into from
Apr 11, 2017
Merged

Conversation

euank
Copy link
Member
@euank euank commented Mar 27, 2017

For backwards compatibility, specifying 'insecure-options=ondisk' will
still run without error, however it will also not do anything.

Implements #3481

This also implements an image verify subcommand that provides the original ondisk verification functionality.

This makes things much faster 💨 🚀.

var (
cmdImageVerify = &cobra.Command{
Use: "verify IMAGE...",
Short: "Verify one or more images in the local store",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: "verify one or more rendered images"...

@squeed
Copy link
Contributor
squeed commented Mar 27, 2017

One thought: right now, whether or not an image is "rendered" is not really exposed to the user. It might make sense to skip or otherwise treat non-rendered images as not an error.

@euank
Copy link
Member Author
euank commented Mar 28, 2017

@squeed Made that change, good call.

In reality, unrendered images are fairly rare. rkt fetch does render the image if you're using overlay. I don't know how to get unrendered images without using a system missing overlay support.

@euank
Copy link
Member Author
euank commented Mar 28, 2017

The semaphore failure is a flake; the rest of the bots are happy

euank added 4 commits April 8, 2017 22:21
For backwards compatibility, specifying 'insecure-options=ondisk' will
still run without error, however it will also not do anything.

Implements rkt#3481
This command replaces the previous ondisk verification that was done on
every run.

It can be used in cases where the user suspects their treestore has been
corrupted in some way.
This avoids rendering an image that has not yet been rendered, and
skips doing the verification for it since it's a nonsensical operation.
@euank
Copy link
Member Author
euank commented Apr 10, 2017

Rebased; fixed my imports to be rkt/rkt.

@jonboulle
Copy link
Contributor

This LGTM

@lucab lucab self-requested a review April 11, 2017 07:27
Copy link
Contributor
@s-urbaniak s-urbaniak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member
@lucab lucab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8000

LGTM

@lucab lucab added this to the v1.26.0 milestone Apr 11, 2017
@lucab lucab merged commit d2d35e0 into rkt:master Apr 11, 2017
@euank euank deleted the ondisk branch May 10, 2017 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0