From 33fad1beeb48c1a8b20ad3ceaf57ffcf6389671c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 30 Mar 2023 14:22:51 +0200 Subject: [PATCH 1/2] Dump efs in DebugDumpStore --- src/service.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service.rs b/src/service.rs index 4e9ab97cb73..eb381694c55 100644 --- a/src/service.rs +++ b/src/service.rs @@ -312,6 +312,9 @@ impl ServiceResources

{ info_now!(":: PERSISTENT"); recursively_list(self.platform.store().ifs(), path!("/")); + info_now!(":: EXTERNAL"); + recursively_list(self.platform.store().efs(), PathBuf::from("/")); + info_now!(":: VOLATILE"); recursively_list(self.platform.store().vfs(), path!("/")); From ee3fa53076780ae09179fd4ae27c2bf9ba921384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 30 Mar 2023 14:28:48 +0200 Subject: [PATCH 2/2] Put debug-dump-store behind a cfg flag --- src/service.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/service.rs b/src/service.rs index eb381694c55..b2d87572316 100644 --- a/src/service.rs +++ b/src/service.rs @@ -307,6 +307,7 @@ impl ServiceResources

{ // This is now preferably done using littlefs-fuse (when device is not yet locked), // and should be removed from firmware completely + #[cfg(debug_dump_store)] Request::DebugDumpStore(_request) => { info_now!(":: PERSISTENT"); @@ -345,6 +346,9 @@ impl ServiceResources

{ } + #[cfg(not(debug_dump_store))] + Request::DebugDumpStore(_request) => Err(Error::RequestNotAvailable), + Request::ReadDirFirst(request) => { let maybe_entry = match filestore.read_dir_first(&request.dir, request.location, request.not_before_filename.as_deref())? { Some((entry, read_dir_state)) => {