student-distrib/fs_module.c
int32_t dir_open(int32_t* inode, char* filename){

	dentry_t f;

	//Error out if can't read file
	if(read_dentry_by_name(filename, &f) == -1)
		return -1;

	//copy index
	*inode = f.inode;
	return 0;
}
/*
   dir_open
   		DESCRIPTION: open directory from file name
   		INPUTS: inode - index pointer
				filename - name of file to open
		OUTPUT: 0 on success, -1 on failure
		SIDE EFFECTS: index copied
 */
dir_open
DESCRIPTION: open directory from file name
INPUTS: inode - index pointer
filename - name of file to open
OUTPUT: 0 on success, -1 on failure
SIDE EFFECTS: index copied
dir_open DESCRIPTION : open directory from file name INPUTS : inode - index pointer filename - name of file to open OUTPUT : 0 on success - 1 on failure SIDE EFFECTS : index copied
int32_t dir_open(int32_t* inode, char* filename){
	dentry_t f;
	if(read_dentry_by_name(filename, &f) == -1)
		return -1;
	*inode = f.inode;
	return 0;
}
int32_t dir_open ( int32_t * inode , char * filename ) { dentry_t f ; if ( read_dentry_by_name ( filename , & f ) == -1 ) return -1 ; * inode = f . inode ; return 0 ; }
dir_open
DESCRIPTION: open directory from file name
INPUTS: inode - index pointer
filename - name of file to open
OUTPUT: 0 on success, -1 on failure
SIDE EFFECTS: index copied
dir_open DESCRIPTION : open directory from file name INPUTS : inode - index pointer filename - name of file to open OUTPUT : 0 on success - 1 on failure SIDE EFFECTS : index copied
//Error out if can't read file //copy index