mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	FileSys/Kernel: Implement SetSize service call for File objects.
This commit is contained in:
		@@ -181,6 +181,14 @@ public:
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        case FileCommand::SetSize:
 | 
			
		||||
        {
 | 
			
		||||
            u64 size = cmd_buff[1] | ((u64)cmd_buff[2] << 32);
 | 
			
		||||
            DEBUG_LOG(KERNEL, "SetSize %s %s size=%d", GetTypeName().c_str(), GetName().c_str(), size);
 | 
			
		||||
            backend->SetSize(size);
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        case FileCommand::Close:
 | 
			
		||||
        {
 | 
			
		||||
            DEBUG_LOG(KERNEL, "Close %s %s", GetTypeName().c_str(), GetName().c_str());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user