| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | WSLCSessionDefaults.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | Shared constants for WSLc session naming and storage. |
| 12 | |
| 13 | --*/ |
| 14 | #pragma once |
| 15 | |
| 16 | #include <cstdint> |
| 17 | |
| 18 | namespace wsl::windows::wslc { |
| 19 | |
| 20 | inline constexpr const wchar_t DefaultSessionName[] = L"wslc-cli"; |
| 21 | inline constexpr const wchar_t DefaultAdminSessionName[] = L"wslc-cli-admin"; |
| 22 | inline constexpr const wchar_t DefaultStorageSubPath[] = L"wslc\\sessions"; |
| 23 | inline constexpr const wchar_t DefaultStorageVhdName[] = L"storage.vhdx"; |
| 24 | inline constexpr const char DefaultHostLoopback[] = "host.wslc.internal"; |
| 25 | inline constexpr uint32_t DefaultBootTimeoutMs = 30000; |
| 26 | inline constexpr const char ContainerdStorageMountPoint[] = "/var/lib/docker"; |
| 27 | |
| 28 | // Grace period given to a container runtime process to exit after being asked to terminate, and |
| 29 | // the additional time it is given after being killed. |
| 30 | inline constexpr uint32_t ProcessTerminateTimeoutMs = 30 * 1000; |
| 31 | inline constexpr uint32_t ProcessKillTimeoutMs = 10 * 1000; |
| 32 | |
| 33 | } // namespace wsl::windows::wslc |