Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/windows/wslcsession/WSLCContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ void WSLCContainerImpl::Export(WSLCHandle OutHandle) const
}

// Release the lock so the container can still be interacted with while the export is in progress.
// Passed this point, no member variables can be accessed.
// Past this point, no member variables can be accessed.
lock.reset();

io.Run({});
Expand Down Expand Up @@ -1795,7 +1795,7 @@ void WSLCContainerImpl::MapPorts()
if (!e.VmMapping.VmPort)
{
// Reuse existing vm port allocation when possible.
// This is required because the same container can be bind the port number for different families or protocols.
// This is required because the same container can bind the port number for different families or protocols.
auto existing = allocatedPorts.find(e.ContainerPort);
if (existing != allocatedPorts.end())
{
Expand Down
5 changes: 2 additions & 3 deletions src/windows/wslcsession/WSLCSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ using wsl::windows::service::wslc::WSLCVirtualMachine;

constexpr auto c_containerdStorage = "/var/lib/docker";
constexpr auto c_containerdSocket = "/run/containerd/containerd.sock";
constexpr auto c_dockerdReadyLogLine = "API listen on /var/run/docker.sock";
constexpr DWORD c_processTerminateTimeoutMs = 30 * 1000;
constexpr DWORD c_processKillTimeoutMs = 10 * 1000;

Expand Down Expand Up @@ -423,8 +424,6 @@ try
return;
}

constexpr auto c_dockerdReadyLogLine = "API listen on /var/run/docker.sock";

std::string entry = {Buffer.begin(), Buffer.end()};
WSL_LOG(
"ContainerdLog",
Expand Down Expand Up @@ -1223,7 +1222,7 @@ try
CATCH_AND_THROW_DOCKER_USER_ERROR("Failed to list images");

// Compute the number of entries - one entry per tag, or one per image if no tags
auto entries = std::accumulate<decltype(images.begin()), size_t>(images.begin(), images.end(), 0, [](auto sum, const auto& e) {
auto entries = std::accumulate(images.begin(), images.end(), size_t{0}, [](auto sum, const auto& e) {
return sum + (e.RepoTags.empty() ? 1 : e.RepoTags.size());
});

Expand Down
4 changes: 2 additions & 2 deletions test/linux/unit_tests/lxtfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void LxtFsUtimeRoundToNt(struct timespec* Timespec);

//
// All real timestamps are offset from the year 2000 because FAT can only
// accept timestamps afer 1980.
// accept timestamps after 1980.

BASIC_TEST_CASE BasicTestCases[] = {
{{{FS_UNIX_TIME_2000 + 1111111, 2222222}, {FS_UNIX_TIME_2000 + 3333333, 4444444}},
Expand Down Expand Up @@ -2056,7 +2056,7 @@ int LxtFsTestSetup(PLXT_ARGS Args, const char* TestDir, const char* DrvFsDir, bo
DrvFsDir - Supplies the DrvFs directory to use for testing. This must
start with a slash, and be relative from the root of the DrvFs mount.

UseDrvFs - Supplies a pa value indicating whether DrvFs is being used.
UseDrvFs - Supplies a value indicating whether DrvFs is being used.

Return Value:

Expand Down