There is a C language module called FATFS, but do you know its algorithm?

Asked 2 years ago, Updated 2 years ago, 39 views

I'm trying to create an operating system as a hobby.
I am currently trying to build a file system on that OS.
The languages are GCC and nask.
I'm thinking of referring to FATFS, but I have little knowledge of C language and
Of course, I am studying C language, but it is difficult to learn, and the program that I can make is
It only displays a string on the console.I understand the pointer and structure just in case.
That's why I want to hear the FATFS algorithm.
I'm sorry that the writing is dirty.
P.S. The core of the OS exists by referring to the book "Introduction to OS Self-made" which can be made in 30 days.
   I understand the source code.

c fatfs

2022-09-30 20:29

1 Answers

I think the 28-3 OS self-made API is implemented by FATFS.
Do you mean that you can't really understand it just by implementing it?

If so, the Microsoft Extensible Firmware Initiative FAT32 File System Specification is Microsoft's specification for FatFS, so it will be helpful.

However, if you are not sure about this, wouldn't it be better to look at open source implementations such as Linux and TOPPERS?

https://www.toppers.jp/fatfs.html

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/fat?id=refs/tags/v3.19-rc5

I think TOPERS will be more helpful for the introductory base of OS.


2022-09-30 20:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.