mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	BlockDevice -> DiskDevice.
BlockDevice was the wrong name for this abstraction, since a block device is a type of file in a unix system, and we should use that name for that concept in the fs implementation.
This commit is contained in:
		
							parent
							
								
									72bb80a9ae
								
							
						
					
					
						commit
						9cd0a34b5c
					
				
					 12 changed files with 62 additions and 64 deletions
				
			
		|  | @ -1,20 +0,0 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <AK/Retainable.h> | ||||
| #include <AK/Types.h> | ||||
| 
 | ||||
| class BlockDevice : public Retainable<BlockDevice> { | ||||
| public: | ||||
|     virtual ~BlockDevice(); | ||||
| 
 | ||||
|     virtual unsigned blockSize() const = 0; | ||||
|     virtual bool readBlock(unsigned index, byte*) const = 0; | ||||
|     virtual bool writeBlock(unsigned index, const byte*) = 0; | ||||
|     virtual const char* className() const = 0; | ||||
|     virtual bool read(qword offset, unsigned length, byte*) const = 0; | ||||
|     virtual bool write(qword offset, unsigned length, const byte*) = 0; | ||||
| 
 | ||||
| protected: | ||||
|     BlockDevice(); | ||||
| }; | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling