Answer the question
In order to leave comments, you need to log in
Disk defragmentation in C/C++, where to dig?
Hello. I was asked to write a coursework, write a program in a similar language to defragment a disk (Windows, DOS). I don't even know where to dig. Please advise gentlemen.
UPD. Thank you! Yes, the task is under DOS FAT12 or 16 or 32. I am learning now. Will write the result.
Answer the question
In order to leave comments, you need to log in
there are two ways: the first one is on github, the second one is on sourceforge
In any case, read the documentation for the target FS. Then - checking one file for fragmentation. I think it will be more or less obvious.
Just "disk defragmentation"? Let's say I only had options like "own file system with automatic defragmentation" or something like that. Someone got memory managers with defragmentation or automatic garbage collection ...
In any case, see opensource solutions and read the documentation. Since there is DOS on the list, I think it's easier to take which FAT16 or FAT32. Lots of implementations. proof .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question