Skip to content

Conversation

@Ricky-Daxia
Copy link
Collaborator

  • 在 xfstests 中遇到了 write 中无效参数的问题。解决方案是修复 open() 调用返回值的 flags,使其在目前的使用方式中不会出现 O_DIRECT 标志。这样做的原因是这个标志需要比较复杂的处理逻辑,目前还未实现(参考了上游仓库 fuse-backend-rs 也没有实现),所以暂时不要返回这个 flag
  • 在挂载后进行 buck2 构建时发现了一个此前 uid/gid mapping 中引入的 bug:代码顺序没有调整好,在切换线程 uid/gid 后(例如切换到普通用户身份)还进行了 open_by_handle_at() 调用,它需要 CAP_DAC_READ_SEARCH 能力,而这通常是 root 用户才有的。解决方案是把需要 root 能力的调用调整到线程 uid/gid 切换之前执行

@Ivanbeethoven Ivanbeethoven added this pull request to the merge queue Nov 5, 2025
Merged via the queue into rk8s-dev:main with commit 5c94303 Nov 5, 2025
6 checks passed
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.

2 participants