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

Implement Filestore #57

Merged
merged 8 commits into from
Jun 4, 2024
Merged

Implement Filestore #57

merged 8 commits into from
Jun 4, 2024

Conversation

jmg-duarte
Copy link
Contributor

@jmg-duarte jmg-duarte commented May 31, 2024

Description

Fixes #23

Adds a file-backed CAR store/importer. It mainly mimics the function of CreateFilestore.

This functionality should be part of the file importing process
https://github.com/filecoin-project/lotus/blob/0a51a0a21933c6db1067b5bb598f4a0fe7b70051/node/impl/client/client.go#L503-L575

Important points for reviewers

Like Blockstore, Filestore needs to be actually used to better shape the API. Everything is working though!

Checklist

  • Are there important points that reviewers should know?
  • Make sure that you described what this change does.
  • If there are follow-ups, have you created issues for them?
    • If yes, which ones? / List them here
  • Have you tested this solution?
  • Were there any alternative implementations considered?
  • Did you document new (or modified) APIs?

@jmg-duarte jmg-duarte changed the title Feat/23/filestore Implement Filestore May 31, 2024
@jmg-duarte jmg-duarte self-assigned this May 31, 2024
@jmg-duarte jmg-duarte force-pushed the feat/23/filestore branch from 843a024 to 054ca9b Compare May 31, 2024 17:11
@jmg-duarte jmg-duarte marked this pull request as ready for review June 3, 2024 09:46
@jmg-duarte jmg-duarte added the ready for review Review is needed label Jun 3, 2024
Copy link
Contributor

@th7nder th7nder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor suggestion to the API design, if there are no other alternatives I'm okay to roll with it.

storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
th7nder
th7nder previously approved these changes Jun 3, 2024
Copy link
Contributor

@th7nder th7nder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@th7nder th7nder added ready for review Review is needed and removed ready for review Review is needed labels Jun 3, 2024
storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
storage/mater/src/v1/mod.rs Show resolved Hide resolved
storage/mater/src/v1/mod.rs Show resolved Hide resolved
storage/mater/src/lib.rs Show resolved Hide resolved
storage/mater/src/v1/mod.rs Show resolved Hide resolved
storage/mater/src/v1/mod.rs Show resolved Hide resolved
storage/mater/src/stores/filestore.rs Outdated Show resolved Hide resolved
@th7nder th7nder added ready for review Review is needed and removed ready for review Review is needed labels Jun 4, 2024
@serg-temchenko serg-temchenko merged commit 30bd7b1 into develop Jun 4, 2024
3 checks passed
@serg-temchenko serg-temchenko deleted the feat/23/filestore branch June 4, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Review is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Storage Abstraction Implementation
4 participants