Commit Graph
10 Commits
Author SHA1 Message Date
Thomas Way 9d8277341f Add build guards for all Windows imports 2021-01-21 23:24:01 +00:00
Daniel Canter e9604c63ae Add new virtdisk calls/refactor vhd package
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. https://github.com/microsoft/hcsshim/pull/881.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2020-11-30 08:23:06 -08:00
Justin Terry (VM) 5adf6781fa Fix regression in DetachVhd
When opening a disk it for deatch using 'Version == 2' parameters it is
required that the'accessMask == VirtualDiskAccessNone'. Also updates the
virtual disk 'flag' parameter to match the set specified by the product when
activating the layer.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2019-08-06 11:28:36 -07:00
Justin 4de24ed3e8 Merge pull request #111 from Microsoft/jjh/openvhd
Add OpenVirtualDisk to vhd library
2019-03-12 15:15:28 -07:00
John Howard dcdaf955de Add OpenVirtualDisk to vhd package
Signed-off-by: John Howard <jhoward@microsoft.com>
2019-03-12 11:57:15 -07:00
CodeLingo Bot ea6bc01ef5 Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-11 00:56:50 +00:00
John Howard 275ee76c20 Add DetachVhd entrypoint
Signed-off-by: John Howard <jhoward@microsoft.com>
2018-08-23 15:01:31 -07:00
John Howard 09c0aff8d5 Convert all files to unix line endings
Signed-off-by: John Howard <jhoward@microsoft.com>
2018-08-23 14:56:23 -07:00
Stefan Wernli 24d09c6f4b Adding VHD library with simple function, updating mksyscall
Adds the basic structs for VHD function calls and includes one simple wrapper for VHDX creation.
This includes the updated version of mksyscall_windows.go, which previously assumed any api that doesn't end in "W" must not be unicode, and encodes the strings incorrectly. This hard-codes for unicode support and generates the syscalls from there.
2017-07-11 21:12:04 -07:00
Stefan Wernli 1bbb8c8d24 Copying mksyscall_windows from golang 2017-07-11 20:18:55 -07:00