`mkdir` with the `recursive` flag hides `EROFS` readonly file system errors with `ENOENT`
オープン
まだ誰も着手していません。
fs
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
v19.7.0
Platform
Linux 0a51b4117477 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 Linux
Subsystem
fs
What steps will reproduce the bug?
- Clone https://github.com/Silic0nS0ldier/nodejs-mkdir-recursive-hides-erofs
- With repo root as
cwd, run commands listed inREADME. Reported issue is first test case.
How often does it reproduce? Is there a required condition?
Provided the target of mkdir is a read only filesystem and the directory does not already exist, this issue reproduces 100% of the time.
What is the expected behavior? Why is that the expected behavior?
An error with the error code EROFS.
What do you see instead?
An error with the error code ENOENT.
Additional information
On AMD64 systems the digest will need to be re-acquired, as this reproduction was created on an ARM64 host.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた再現リポジトリのREADMEにある最初のテストケースをLinuxの読み取り専用ファイルシステム上で実行し、続いてNode.jsのfsサブシステム内にある再帰的mkdirのパスを追跡します。同じケースでENOENTではなくEROFSが報告されれば完了です。必要に応じて、記載されているv19.7.0のシナリオとAMD64での動作を確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, linux, node.js
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100