@@ -82,8 +82,8 @@ impl BlockGroup {
82
82
let inode = bg. inode_table . get_mut ( 0 ) . unwrap ( ) ;
83
83
// 777 dir
84
84
inode. i_mode = 0x41ff ;
85
- bg. add_entry_to_directory ( "." . to_string ( ) , 1 , FileType :: Directory ) ;
86
- bg. add_entry_to_directory ( ".." . to_string ( ) , 1 , FileType :: Directory ) ;
85
+ // bg.add_entry_to_directory(".".to_string(), 1,FileType::Directory);
86
+ // bg.add_entry_to_directory("..".to_string(), 1,FileType::Directory);
87
87
bg
88
88
}
89
89
@@ -191,8 +191,8 @@ impl BlockGroup {
191
191
pub fn bg_mkdir ( & mut self , name : String , parent_inode : usize ) -> Option < fuser:: FileAttr > {
192
192
let child_inode = self . add_entry_to_directory ( name, parent_inode, FileType :: Directory ) ;
193
193
self . inode_table [ child_inode - 1 ] . init_as_dir ( ) ;
194
- self . add_entry_to_directory ( "." . to_string ( ) , child_inode, FileType :: Directory ) ;
195
- self . add_entry_to_directory ( ".." . to_string ( ) , child_inode, FileType :: Directory ) ;
194
+ // self.add_entry_to_directory(".".to_string(), child_inode,FileType::Directory);
195
+ // self.add_entry_to_directory("..".to_string(), child_inode,FileType::Directory);
196
196
Some ( self . inode_table [ parent_inode - 1 ] . get_file_attr ( child_inode as u64 ) )
197
197
}
198
198
0 commit comments