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

[Update fat.c] fat sector 계산에서 요류 수정 문의드립니다 #12

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

Conversation

dd0114
Copy link

@dd0114 dd0114 commented Jul 19, 2022

핀토스 기준에서는 섹터 사이즈가 512이고 클러스터가 int형이기 때문에 한섹터에 담을 수 있는 클러스터는 129가 아닌 128이 맞는 것 같습니다. +1을 제외해야할것 같습니다!

핀토스 기준에서는 섹터 사이즈가 512이고 클러스터가 int형이기 때문에 한섹터에 담을 수 있는 클러스터는 129가 아닌 128이 맞는 것 같습니다. +1을 제외해야할것 같습니다!
@kohs100
Copy link

kohs100 commented Jul 19, 2022

FAT테이블의 사이즈 계산시 테이블 자체의 사이즈를 제외하고 계산할 필요가 있기 때문에 +1을 하는 것이 맞다고 알고있습니다.

@dd0114
Copy link
Author

dd0114 commented Jul 19, 2022

넵 그부분은 141번줄과 마지막 +1에서 계산된 것 같습니다. 제가 문의 드린부분은 한섹터당 들어가는 클러스터를 계산하는부분에서 +1이 되어있습니다.
sizeof (cluster_t) * SECTORS_PER_CLUSTER + 1 = 129로 계산되고있는데
sizeof (cluster_t) * SECTORS_PER_CLUSTER = 128 로 계산되어야 할 것 같습니다!

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