Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Could test get FILE_OBJECTID_BUFFER functions

未关闭
#296 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
csharp

调研方向

在测试套件中查找 SMB2_Ioctl 和 SMB2_GetInfo 的现有覆盖情况,然后跟踪信息级别是如何测试的。为 FSCTL_CREATE_OR_GET_OBJECT_ID、FSCTL_GET_OBJECT_ID、FileFsObjectIdInformation 和 FileIdInformation 添加检查,确保返回的对象 ID 非零,并且两个新文件的对象 ID 彼此不同。

由索引模型根据 Issue 内容生成。

描述

We observe that Windows 11 now requests a FILE_OBJECTID_BUFFER quite frequently (apparently after almost every SMB2 create) using the following SMB2 functions:

  • SMB2_Ioctl / FSCTL_CREATE_OR_GET_OBJECT_ID
  • SMB2_Ioctl / FSCTL_GET_OBJECT_ID
  • SMB2_GetInfo / FS_INFO / FileFsObjectIdInformation

We also occasionally see requests for a FILE_ID_INFORMATION buffer, containing the same "Object Id", this SMB call:

  • SMB2_Getinfo / FILE_INFO / FileIdInformation

I don't see any tests for these information levels. Any server could implement them, and we do, returning a per-file unique value for the Object ID. The test cannot possibly "know" what is a correct value, but it could verify that the value is not all zeros, and could verify that two new files have different Object ID values.

主要语言
C#
星标
566
派生
217
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/WindowsProtocolTestSuites 的其他 Issue

查看 microsoft/WindowsProtocolTestSuites 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。