Skip to content

Conversation

@helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Jun 11, 2025

Redo PR #1644, which swapped builtin "path/filepath".EvalSymlinks with "github.com/Microsoft/go-winio/pkg/fs".ResolvePath, since the later is able to handle deeply nested symlinks and (as of
go 1.23), mountpoints.

Redo PR 1644, which swapped builtin `"path/filepath".EvalSymlinks` with
`"github.com/Microsoft/go-winio/pkg/fs".ResolvePath`, since the later is
able to handle deeply nested symlinks and (as of
[go1.23](golang.org/doc/go1.23#pathfilepathpkgpathfilepath)),
mountpoints.

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy requested a review from a team as a code owner June 11, 2025 15:12
@ambarve
Copy link
Contributor

ambarve commented Jun 16, 2025

nit: It would be nice to also update the test code at: https://github.com/microsoft/hcsshim/blob/main/test/functional/make_uvm_cim_test.go#L25, but it is not urgent, so if we need to get this in immediately, we can include that in a later PR.

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy merged commit e3722b0 into microsoft:main Jun 16, 2025
18 of 19 checks passed
@helsaawy helsaawy deleted the resolve-path branch June 16, 2025 17:41
@helsaawy helsaawy mentioned this pull request Jun 16, 2025
helsaawy added a commit that referenced this pull request Jun 16, 2025
* [backport]Trim LCOW `GetProperties` response (#2458)

* Trim LCOW `GetProperties` response

Zero out the Linux `GetProperties` `Blkio` field, since it scales with the
number of container layers attacked to the uVM.
Additionally empty the `Rdma` and `Network` fields, in case they can
also grow without bound.
None of the fields are used in any code paths in the AzCRI, or exposed
elsewhere.

Clarify comment about the maximum message size, to reflect that it
mirrors and HCS value and is not arbitrary.

Additionally, don't quit the receive loop if the message size is too
large, since that brings the bridge down with it.

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: undo receive loop changes

Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit a53730e)
Signed-off-by: Hamza El-Saawy <[email protected]>

* [backport]Swap `EvalSymlinks` with `ResolvePath` (#2455)

* Swap `EvalSymlinks` with `ResolvePath`

Redo PR 1644, which swapped builtin `"path/filepath".EvalSymlinks` with
`"github.com/Microsoft/go-winio/pkg/fs".ResolvePath`, since the later is
able to handle deeply nested symlinks and (as of
[go1.23](golang.org/doc/go1.23#pathfilepathpkgpathfilepath)),
mountpoints.

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: update CIM test code

Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit e3722b0)
Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants