Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add streaming filesystem backup support #2323

Merged
merged 3 commits into from
Apr 30, 2021

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Apr 29, 2021

This PR adds the ArchiveStream class to support backing up filesystems. The archive files are in FWFS format.

  • Add FWFS for user attribute support

User attributes can be set (via callback) during the backup operation and read backup using the standard IFS API.

  • Add Encrypted file attribute

Files may be encrypted via IBlockEncoder plugin, which would set this attribute.

  • Add Comment standard attribute

Standard comment of up to 255 characters (FWFS and LittleFS).

  • Add check in fsbuild for duplicate directories/files, and allow paths to be specified in source

Tests have been updated accordingly.

Check write access on file operations - LFS throws assertions rather than returning error code
Setting standard file attributes requires value size to be exact
@slaff slaff added this to the 4.3.1 milestone Apr 29, 2021
@slaff slaff merged commit fcb9186 into SmingHub:develop Apr 30, 2021
@mikee47 mikee47 deleted the feature/fwfs-archive branch April 30, 2021 08:13
@slaff slaff mentioned this pull request May 5, 2021
5 tasks
slaff pushed a commit that referenced this pull request Sep 27, 2021
This PR adds the `ArchiveStream` class to support backing up filesystems. The archive files are in FWFS format.

- Add FWFS for user attribute support

User attributes can be set (via callback) during the backup operation and read backup using the standard IFS API.

- Add Encrypted file attribute

Files may be encrypted via `IBlockEncoder` plugin, which would set this attribute.

- Add `Comment` standard attribute

Standard comment of up to 255 characters (FWFS and LittleFS).

- Add check in fsbuild for duplicate directories/files, and allow paths to be specified in source

Tests have been updated accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants