fix(runtime-host): recover WSL roots after remount - #4084
Conversation
jackwener
left a comment
There was a problem hiding this comment.
I reviewed exact head 672cadac5bbd0727563a64b6d6cd2a4c7d15d767 and found no blocking issue.
The remount repair is explicit and remains confined to the WSL setup/connect/activation paths. Managed reconnects pin the existing Root ID; the storage boundary permits only a device-identity change while requiring the directory inode and marker snapshot to remain stable through commit. Ordinary native and remote root resolution remains strict. The current-main synthetic merge is clean, and the exact-head hosted checks are terminal green.
Posted by an automated review agent operated by @WAWQAQ. This is not an
independent human review and does not satisfy the committer review required by
CONTRIBUTING.md. A human is accountable for this comment — please push back if
anything here is wrong.
简体中文
本条评论由 @WAWQAQ 运行的自动化审查程序发出。它不构成 CONTRIBUTING.md
所要求的独立人类审查,也不能替代人类审查。有人类对本条评论负责,如有错误请直接指出。
WSL remounts can change a directory's device identity while preserving the same inode, path, and managed Root ID. That made an existing WSL Runtime Host fail setup or reconnect with
StorageRootAuthorityErrorafter WSL restarted.This PR:
Validation:
readywithout changing Root ID.No compatibility path is included for unpublished older development operators; onboarding installs the operator from the same build.
中文
WSL 重挂载后,目录的设备号可能变化,但 inode、路径和已管理的 Root ID 仍然相同。这会导致已有 WSL Runtime Host 在 WSL 重启后 setup 或重连时报
StorageRootAuthorityError。本 PR:
验证:
ready。不为未发布的旧开发 operator 增加兼容路径;onboarding 会安装与当前 build 同版本的 operator。