mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:22:45 +00:00 
			
		
		
		
	Kernel: Change Ext2FS to be backed by a file instead of a block device
This ensures that we can mount image files as virtual disks without the need of implementing gross hacks like loopback devices :)
This commit is contained in:
		
							parent
							
								
									2f2016f51d
								
							
						
					
					
						commit
						6b59311d4b
					
				
					 10 changed files with 116 additions and 90 deletions
				
			
		|  | @ -292,7 +292,7 @@ void init_stage2() | |||
|             } | ||||
|         } | ||||
|     } | ||||
|     auto e2fs = Ext2FS::create(root_dev); | ||||
|     auto e2fs = Ext2FS::create(*FileDescription::create(root_dev)); | ||||
|     if (!e2fs->initialize()) { | ||||
|         klog() << "init_stage2: couldn't open root filesystem"; | ||||
|         hang(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A