-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add HCS storage APIs #881
Add HCS storage APIs #881
Conversation
Can you add information on what this is used for and how the bindings will be used in the future? |
@katiewasnothere Yep. Truth be told I opened the PR and went on an errand 😃 |
For the immediate future these bindings will be used to create a cache of scratch layers of different sizes to be used if a user asks for a scratch layer of a different size than the default that is made by the graph driver APIs (20GB). If the size requested is not in the cache, we will make a new scratch layer of that size using these binds as well. For the future, we may move containerd off of the old graphdriver (wclayer) calls and onto these for the windows snapshotter. No scenarios come to mind, but it gives more freedom in how layers are managed and especially how the writable layers are handled. |
14e87c6
to
29760c7
Compare
One small suggestion but LGTM otherwise! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Are these not in |
Correct |
* Add bindings for the HCS storage APIs from computestorage.dll Signed-off-by: Daniel Canter <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the vhd creation and setup needs to be done manually for these calls. microsoft/hcsshim#881. Signed-off-by: Daniel Canter <[email protected]>
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the vhd creation and setup needs to be done manually for these calls. microsoft/hcsshim#881. Signed-off-by: Daniel Canter <[email protected]>
// | ||
// `layerPath` is a path to a directory containing the layer. | ||
// | ||
// `vhdHandle` is an empty file handle of `options.Type == OsLayerTypeContainer` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"empty file handle if" I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct :)
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the vhd creation and setup needs to be done manually for these calls. microsoft/hcsshim#881. Signed-off-by: Daniel Canter <[email protected]>
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the vhd creation and setup needs to be done manually for these calls. microsoft/hcsshim#881. Signed-off-by: Daniel Canter <[email protected]>
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the vhd creation and setup needs to be done manually for these calls. microsoft/hcsshim#881. Signed-off-by: Daniel Canter <[email protected]>
Related work items: microsoft#173, microsoft#839, microsoft#856, microsoft#877, microsoft#881, microsoft#886, microsoft#887, microsoft#888, microsoft#889, microsoft#890, microsoft#893, microsoft#894, microsoft#896, microsoft#899, microsoft#900, microsoft#902, microsoft#904, microsoft#905, microsoft#906, microsoft#907, microsoft#908, microsoft#910, microsoft#912, microsoft#913, microsoft#914, microsoft#916, microsoft#918, microsoft#923, microsoft#925, microsoft#926, microsoft#928, microsoft#929, microsoft#932, microsoft#933, microsoft#934, microsoft#938, microsoft#939, microsoft#942, microsoft#943, microsoft#945, microsoft#946, microsoft#947, microsoft#949, microsoft#951, microsoft#952, microsoft#954
Signed-off-by: Daniel Canter [email protected]