[cs33211] Re: File System Project

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Apr 23 17:58:22 EDT 2007


> I have a few questions about the current project.  How can we use all
> 500 blocks when the pointer size is only a byte?  When it is a byte, we
> can only address 256 blocks minus 2 for the inode/secondary index.  In
> addition, are we only supposed to access 18 data blocks?  This does not
> make much sense, unless there is something I am misunderstanding about
> the indirect index.  

Yes, it is 18 data blocks and yes, the "disk" is a bit too large for
the filesystem.

> Also, what is the best way to detect for the
> keyword ENDFILE?  

Just look for in in the input strings. I would suggest using strstr
(3) function in C or find() function of C++ string class. 

thanks,
--
Mikhail


More information about the cs33211 mailing list