[cs33211] cs33211 Project 3

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Nov 28 18:27:15 EST 2012


> How do we get our programs to format the DISK file? Or in other words, how
> do we get the DISK file to its initial state?

I do not think you need initial formatting. The writing part of your
program writes bytes onto the disk assuming it is empty.


> Also, you said we should use unsigned char for the data on DISK. Should we
> use this for both data and references? 

That would work.

> Since the double indirect block will
> contain 2-digit references, How should I handle 2-digit numbers in my
> program? 

Well, if your user inputs "23", you need to store characters '2' and
'3" which take up two bytes. The project is designed such that you
never have to store on the disk the actual numbers larger than a
single byte.

Thanks,
--
Mikhail



More information about the cs33211 mailing list