mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	Kernel: Add tightly typed ISO9660Inode::fs() overload
We know the fs() is always an ISO9660FS, so let's be nice and make fs() return that when called on an ISO9660Inode. :^)
This commit is contained in:
		
							parent
							
								
									37304203dd
								
							
						
					
					
						commit
						5416fa252a
					
				
					 2 changed files with 11 additions and 11 deletions
				
			
		|  | @ -347,6 +347,9 @@ class ISO9660Inode final : public Inode { | |||
| public: | ||||
|     virtual ~ISO9660Inode() override; | ||||
| 
 | ||||
|     ISO9660FS& fs() { return static_cast<ISO9660FS&>(Inode::fs()); } | ||||
|     ISO9660FS const& fs() const { return static_cast<ISO9660FS const&>(Inode::fs()); } | ||||
| 
 | ||||
|     // ^Inode
 | ||||
|     virtual KResultOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer& buffer, FileDescription*) const override; | ||||
|     virtual InodeMetadata metadata() const override; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling