Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

AbsolutePath.ReadKind reports volume mount points (mounted folders) as junctions

オープン
#253 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

Start with AbsolutePath.ReadKind() in TruePath/AbsolutePath.cs and DiskUtils.IsJunction in TruePath/DiskUtils.cs, then review issue #242 for the related reparse buffer parsing work. Reproduce with a Windows volume mount point and inspect how its SubstituteName differs from a directory junction. Done means volume mount points are classified according to the chosen FileEntryKind behavior while directory junctions keep their existing classification.

索引モデルが issue の本文から書いたものです。

説明

bug help wanted

On Windows, AbsolutePath.ReadKind() returns FileEntryKind.Junction whenever DiskUtils.IsJunction sees the reparse tag IO_REPARSE_TAG_MOUNT_POINT.

But NTFS uses that same tag for two different things:

  • directory junctions, where the target is a directory path, e.g. \??\C:\Some\Dir;
  • volume mount points ("mounted folders", created via Disk Management or mountvol), where the target is a volume, e.g. \??\Volume{GUID}\.

See Reparse Point Tags and Creating Mounted Folders.

So a folder with a whole volume mounted on it is reported as a Junction, although it's not a link to another directory: it's the root of another file system.

Repro (requires an elevated shell and a spare volume, e.g. a VHD):

mkdir C:\Mnt
mountvol C:\Mnt \\?\Volume{<guid>}\   # take the GUID from `mountvol` output
new AbsolutePath(@"C:\Mnt").ReadKind(); // FileEntryKind.Junction

Recommendations

  • Tell the two apart by the SubstituteName in the MountPointReparseBuffer. A volume mount point's target starts with \??\Volume{.
  • Decide what a volume mount point should be reported as. FileEntryKind.Directory needs no API change. A new FileEntryKind.MountPoint value is more precise, but it is a public API addition.
  • This needs tag-specific parsing of the reparse buffer, which ties in with #242.
主要言語
C#
スター
109
フォーク
26
平均マージ
5日 23分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ForNeVeR/TruePath のほかの issue

ForNeVeR/TruePath の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。