Download A Secure File System Based on
Transcript
off_t * dir; /* Point to the hash directory of the database. */ cache_elem * bucket_cache; /* A hash bucket cache with cache_size bucket cache elements.*/ int cache_size; /* Here is 100. */ int last_read; /* Indicate the last read cache element. */ bucket * bucket; /* Changed to point to the modified hash bucket structure */ int bucket_dir; /* The directory entry for the current hash bucket.*/ cache_elem * cache_entry; /* Point to the current hash bucket's cache entry. */ char header_changed; /* Things need to be written back to disk when updated.*/ char directory_changed; char bucket_changed; char second_changed; } gdbm_file_info; 50