mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
760 B
760 B
VhdOptions
Describes a session VHD requirement or a named session VHD volume.
public sealed class VhdOptions
{
public VhdOptions(string name, ulong size, VhdType type);
public string Name { get; set; }
public ulong Size { get; set; }
public VhdType Type { get; set; }
public VhdOwner? Owner { get; set; }
}
Notes:
- Use
SessionSettings.VhdRequirementsfor session-level storage requirements. - Use
Session.CreateVhdVolume(...)for named session volumes. Owneris intended for named-volume creation and is rejected onSessionSettings.VhdRequirements.
Example:
var vhd = new VhdOptions("cache", 2UL * 1024 * 1024 * 1024, VhdType.Dynamic)
{
Owner = new VhdOwner { Uid = 1000, Gid = 1000 }
};