Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,15 @@ impl<P: Platform> ServiceResources<P> {

// 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");
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!("/"));

Expand Down Expand Up @@ -342,6 +346,9 @@ impl<P: Platform> ServiceResources<P> {

}

#[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)) => {
Expand Down