E
E
edzhornoviy2015-03-17 21:44:03
C++ / C#
edzhornoviy, 2015-03-17 21:44:03

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

3 answer(s)
3
386DX, 2015-03-17
@386DX

there are two ways: the first one is on github, the second one is on sourceforge

V
Vladimir Martyanov, 2015-03-17
@vilgeforce

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.

S
Sergey, 2015-03-18
Protko @Fesor

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 question

Ask a Question

731 491 924 answers to any question