File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -169,25 +169,17 @@ impl VfsNodeOps for RootDirectory {
169169}
170170//初始化文件系统
171171pub ( crate ) fn init_rootfs ( disk : Option < crate :: dev:: Disk > ) {
172- // 确切的代码路径标记
173- #[ cfg( feature = "myfs" ) ]
174- log:: error!( "COMPILING: myfs branch" ) ;
175-
176- #[ cfg( feature = "ramfs" ) ]
177- log:: error!( "COMPILING: ramfs branch" ) ;
178-
179- #[ cfg( feature = "fatfs" ) ]
180- log:: error!( "COMPILING: fatfs branch" ) ;
181-
182172 cfg_if:: cfg_if! {
183173 // if #[cfg(feature = "ramfs")] {// 新增:优先使用 ramfs
184174 // let main_fs = mounts::ramfs();
185175 // info!("Using RAMFS as main filesystem");
186176 // }else
187177 if #[ cfg( feature = "myfs" ) ] { // override the default filesystem
178+ log:: error!( "COMPILING: myfs branch" ) ;
188179 let main_fs = fs:: myfs:: new_myfs( disk. unwrap( ) ) ;
189180 }
190181 else if #[ cfg( feature = "fatfs" ) ] {
182+ log:: error!( "COMPILING: fatfs branch" ) ;
191183 static FAT_FS : LazyInit <Arc <fs:: fatfs:: FatFileSystem >> = LazyInit :: new( ) ;
192184 FAT_FS . init_once( Arc :: new( fs:: fatfs:: FatFileSystem :: new( disk. unwrap( ) ) ) ) ;
193185 FAT_FS . init( ) ;
You can’t perform that action at this time.
0 commit comments