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

Improve FS and speed up file opening #134

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Improve FS and speed up file opening #134

wants to merge 19 commits into from

Conversation

aymanbagabas
Copy link
Member

  • Opening a file now doesn't download the whole file (client)
  • WriteFile signature change to conform with stdlib (client)
  • Use Charm FS X-* headers to pass file info when downloading/uploading files (server & client)
  • Implement a /v1/fs/* HEAD request to fetch file info (server)

Copy link
Member

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

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

nicely done!

server/http.go Outdated Show resolved Hide resolved
fs/fs.go Outdated Show resolved Hide resolved
error when file does not exist and dir is not empty
* ignore file info name
* refactor: change storage.Stat to storage.Info
* ignore the underlying fs file permissions and use the metadata ones
* use a sane dmode & fmode permissions (777 & 666)
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.

2 participants