Skip to content

LCOW: Dedicated scratch space for service VM utilities#33809

Merged
thaJeztah merged 1 commit into
moby:masterfrom
microsoft:jjh/svmdedicatedscratch
Jun 28, 2017
Merged

LCOW: Dedicated scratch space for service VM utilities#33809
thaJeztah merged 1 commit into
moby:masterfrom
microsoft:jjh/svmdedicatedscratch

Conversation

@lowenna

@lowenna lowenna commented Jun 23, 2017

Copy link
Copy Markdown
Member

Signed-off-by: John Howard [email protected]

Adds a dedicated space for the service VM utilities to use as a scratch space.

@johnstep PTAL.
@gupta-ak FYI

@lowenna
lowenna force-pushed the jjh/svmdedicatedscratch branch from 98aa6e7 to 47cb69c Compare June 23, 2017 23:27
@lowenna lowenna changed the title LCOW: Dedicate scratch space for service VM utilities LCOW: Dedicated scratch space for service VM utilities Jun 24, 2017

@johnstep johnstep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread daemon/graphdriver/lcow/lcow.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

dedicated

Comment thread daemon/graphdriver/lcow/lcow.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe define a constant for the container mount path, to avoid duplication.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed. However this code will change shortly to have a single service VM. This is just a single step forward.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Single per container. Just to clarify

@lowenna
lowenna force-pushed the jjh/svmdedicatedscratch branch from 22395fc to d1d649c Compare June 27, 2017 17:56
@lowenna

lowenna commented Jun 27, 2017

Copy link
Copy Markdown
Member Author

Rebased on master.

@lowenna

lowenna commented Jun 28, 2017

Copy link
Copy Markdown
Member Author

Green finally. Power CI must have run a dozen times - very flaky at the moment 😢

@lowenna

lowenna commented Jun 28, 2017

Copy link
Copy Markdown
Member Author

@thaJeztah @vdemeester PTAL if you have time. Thanks 😄

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

scratchAttached := false
if _, err := os.Stat(d.svmScratchSpaceFile); err == nil {
// We have a scratch space already, so just attach it as a mapped virtual disk
logrus.Debugf("lcowdriver: startuvm: (%s) attaching pre-existing scratch", context)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not introduced by this PR, but context is a confusing name (as it's not a context)

@thaJeztah
thaJeztah merged commit 8b29ba5 into moby:master Jun 28, 2017
@lowenna
lowenna deleted the jjh/svmdedicatedscratch branch June 28, 2017 18:08
@thaJeztah thaJeztah added the area/lcow Issues and PR's related to the experimental LCOW feature label Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lcow Issues and PR's related to the experimental LCOW feature status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants