Skip to content

Commit

Permalink
IFS improvements
Browse files Browse the repository at this point in the history
- Add fsbuild `--nominify` option, and FSBUILD_OPTIONS build variable
- Fix assertion failure using named root directory for ArchiveStream
- Fix problem archiving directory which is a mount point
- Fix host `settime`, sets timespec incorrectly
- Support host filesystem rooted to specified directory
- Move debug helper code into separate unit
- Add `mountArchive` helper function, and global function `fileMountArchive()`
- Have test build for all architectures
- Add FileCopier
  • Loading branch information
mikee47 committed Feb 9, 2022
1 parent b945bb2 commit 00ef7ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Sming/Core/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ bool fwfs_mount();
*/
bool fwfs_mount(Storage::Partition partition);

/**
* @brief Mount a backup archive
* @param filename Path to archive file
* @retval IFS::FileSystem* Mounted filesystem. Caller must delete when finished.
*/
inline IFS::FileSystem* fileMountArchive(const String& filename)
{
auto fs = getFileSystem();
return fs ? IFS::mountArchive(*fs, filename) : nullptr;
}

/** @brief Open file by path
* @param path Full path to file
* @param flags Mode to open file
Expand Down

0 comments on commit 00ef7ce

Please sign in to comment.