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

Support exporting backing image from volume #24

Merged
merged 3 commits into from Aug 20, 2021

Conversation

shuo-wu
Copy link
Contributor

@shuo-wu shuo-wu commented Aug 19, 2021

Longhorn 2403

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
joshimoo
joshimoo previously approved these changes Aug 20, 2021
Copy link

@joshimoo joshimoo left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/util/util.go Outdated

func ExecuteWithTimeout(timeout time.Duration, envs []string, binary string, args ...string) (string, error) {
var err error
cmd := exec.Command(binary, args...)
Copy link

@joshimoo joshimoo Aug 20, 2021

Choose a reason for hiding this comment

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

NIT: You can use a CommandContext, then pass a context.withTimeout. This way you don't need the timeout go routine below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed.

Longhorn 2403

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
…ing ready

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
Copy link
Member

@innobead innobead left a comment

Choose a reason for hiding this comment

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

LGTM

@innobead innobead merged commit 3e25f70 into longhorn:master Aug 20, 2021
@shuo-wu shuo-wu deleted the bi-from-volume branch August 25, 2021 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants