Storing files in a file system
Posted: Wed Jul 11, 2007 12:31 am
Suppose you have an index area for your file system where you store information related to all entries in the data block such as files, directories and etc. Now suppose you have this directory:
bin/directory1/
and you create a file called "file1.txt" under that directory. Now you want to store the information pertaining to "file1.txt" in the index area of your file system. How will you determine (in the file's information) to what directory it belongs? will you provide an index to the index area pertaining to its parent directory? a kind of an identifier? XOR the name of the parent and store it as a byte there? what will you do?
bin/directory1/
and you create a file called "file1.txt" under that directory. Now you want to store the information pertaining to "file1.txt" in the index area of your file system. How will you determine (in the file's information) to what directory it belongs? will you provide an index to the index area pertaining to its parent directory? a kind of an identifier? XOR the name of the parent and store it as a byte there? what will you do?