xenclient: auto-retry mmapbatch when paging state issues occur

This commit is contained in:
Alex Zenla committed 2024-01-20 20:29:36 -08:00
1 parent 83264839dd
commit 001c22fd69
3 files changed
+83 -6

No files matched your search

+8 -1
View File
@@ -86,7 +86,14 @@ impl XsdClient {
fn rm(&mut self, tx: u32, path: &str) -> Result<bool, XsdBusError> {
trace!("rm tx={tx} path={path}");
self.socket.send_single(tx, XSD_RM, path)?.parse_bool()
let result = self.socket.send_single(tx, XSD_RM, path);
if let Err(error) = result {
if error.to_string() == "ENOENT" {
return Ok(true);
}
return Err(error);
}
result.unwrap().parse_bool()
}
fn set_perms(