Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新規ファイルの作成時に当該ファイルのDirectoryEntryをゼロクリアする #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikecat
Copy link
Contributor

@mikecat mikecat commented Sep 19, 2022

実機での動作検証において、新しいファイルに書き込む際に #PF が出て動作が止まる現象が発生しました。

Screenshot 2022-09-19 15-05-48

検証の結果、この時クラスタ 0xffff0000 に書き込もうとしていることがわかりました。
これは、削除済みエントリに first_cluster_high に 0xffff が書き込まれているものが存在し、これを初期化せずに利用するため FirstCluster() の上位が 0xffff になることが原因であると考えられます。

mikanos-directory-20220920

よって、ファイルの作成時に確保したディレクトリエントリをゼロクリアすることで、意図しないクラスタに書き込まないようにします。

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.

1 participant