Update to ONDK r29.5

This commit is contained in:
topjohnwu
2026-02-06 16:32:25 -08:00
committed by John Wu
parent e872fafd8b
commit 9ee6a6b3d7
21 changed files with 114 additions and 97 deletions
+4 -3
View File
@@ -17,7 +17,7 @@ unsafe extern "C" {
}
pub(crate) fn switch_root(path: &Utf8CStr) {
let res: LoggedResult<()> = try {
|| -> LoggedResult<()> {
debug!("Switch root to {}", path);
let mut mounts = BTreeSet::new();
let rootfs = Directory::open(cstr!("/"))?;
@@ -48,8 +48,9 @@ pub(crate) fn switch_root(path: &Utf8CStr) {
debug!("Cleaning rootfs");
rootfs.remove_all()?;
};
res.ok();
Ok(())
}()
.ok();
}
pub(crate) fn is_device_mounted(dev: u64, target: Pin<&mut CxxString>) -> bool {