P
P
Pragma Games2021-01-02 13:43:52
C++ / C#
Pragma Games, 2021-01-02 13:43:52

How to estimate disk space loss due to cluster allocation?

How to estimate disk space loss due to cluster
allocation: cluster size, number of files, total file size,
total amount of allocated clusters, "wasted" space as
an absolute value and as a percentage of used.
The FAT16 file system, if anyone else has one ...

PS If possible, I would like to see the code in C ++.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2021-01-02
@saboteur_kiev

No one will write code in C++ for this purpose.
I suspect that they just gave assignments at school / institute.
Well, read the FAT16 specification of the system. She's just set up.
The percentage will always depend on the number of files, their size, and the size of the cluster. You just take it and count with your hands. How could you count with your hands / in excel - you sit down and write code in C ++

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question