From 52955681d5faa69dd168d0465a792a6802d57f42 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 2 Dec 2022 20:10:10 +0800 Subject: [PATCH] reflect unmount status after tryunmount this fixes a problem where backups fail when autobacklight is enabled, because autobacklight is constantly querying the PDDB for the length of the autobacklight timeout, even after the PDDB is unmounted. --- services/pddb/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/pddb/src/main.rs b/services/pddb/src/main.rs index e542055af..6b96e9d21 100644 --- a/services/pddb/src/main.rs +++ b/services/pddb/src/main.rs @@ -1848,6 +1848,7 @@ fn wrapped_main() -> ! { // finally, unmount the system basis basis_cache.basis_unmount(&mut pddb_os, PDDB_DEFAULT_SYSTEM_BASIS).expect("can't unmount system basis"); if basis_cache.basis_list().len() == 0 { + is_mounted.store(false, Ordering::SeqCst); log::info!(".System basis is unmounted."); xous::return_scalar(msg.sender, 1).unwrap(); } else {