mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	agent: return mount file content if parse mountinfo failed
Include mount file content in error message when parsing mountinfo failed for debug. Fixes: #4246, #4103 Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
		| @@ -859,8 +859,9 @@ pub fn get_mount_fs_type_from_file(mount_file: &str, mount_point: &str) -> Resul | ||||
|     } | ||||
|  | ||||
|     Err(anyhow!( | ||||
|         "failed to find FS type for mount point {}", | ||||
|         mount_point | ||||
|         "failed to find FS type for mount point {}, mount file content: {:?}", | ||||
|         mount_point, | ||||
|         fs::read_to_string(mount_file) | ||||
|     )) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user