Remove inode related function and inode table. Moved to inode.h.
This commit is contained in:
		
							parent
							
								
									782d8db162
								
							
						
					
					
						commit
						ca02fd7338
					
				
					 1 changed files with 0 additions and 17 deletions
				
			
		
							
								
								
									
										17
									
								
								super.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								super.c
									
									
									
									
									
								
							| 
						 | 
					@ -9,14 +9,6 @@
 | 
				
			||||||
#define VERSION 0.0.0.1
 | 
					#define VERSION 0.0.0.1
 | 
				
			||||||
#define BLOCKSIZE 4096
 | 
					#define BLOCKSIZE 4096
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint32_t free_blocks;
 | 
					 | 
				
			||||||
uint32_t inode_count;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct inode_table {
 | 
					 | 
				
			||||||
    // TODO: Change currently hardcoded value to actually accurately describe the size of the filesystem, only for temporary purposes.
 | 
					 | 
				
			||||||
    Inode* inodes[640000];
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct super_block {
 | 
					struct super_block {
 | 
				
			||||||
    // fs info
 | 
					    // fs info
 | 
				
			||||||
    char version[8];
 | 
					    char version[8];
 | 
				
			||||||
| 
						 | 
					@ -35,13 +27,4 @@ struct super_block {
 | 
				
			||||||
    struct inode_table* inode_table;
 | 
					    struct inode_table* inode_table;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TODO: Do research on how the fuck to actually do this kind of Array operation
 | 
					 | 
				
			||||||
Inode* find_inode(char filename[], struct super_block sblock) {
 | 
					 | 
				
			||||||
    struct inode_table* itable = sblock.inode_table;
 | 
					 | 
				
			||||||
    // while (itable[inode] != NULL; inode++) {
 | 
					 | 
				
			||||||
    //     if (strcmp(filename, itable[inode]->filesize))
 | 
					 | 
				
			||||||
    // }
 | 
					 | 
				
			||||||
    return NULL;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif // SUPER_H_
 | 
					#endif // SUPER_H_
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue