Merge pull request #4355 from liubin/fix/add-debug-info-for-parse-mount-error

agent: return mount file content if parse mountinfo failed
This commit is contained in:
Tim Zhang
2022-06-02 10:31:46 +08:00
committed by GitHub

View File

@@ -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)
))
}