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

Gvfs prefetch --hydrate not sparse aware #1632

Open
judemars opened this issue Jan 23, 2020 · 1 comment
Open

Gvfs prefetch --hydrate not sparse aware #1632

judemars opened this issue Jan 23, 2020 · 1 comment
Assignees
Labels
domain: sparse Issues related to 'gvfs sparse' verb pri3

Comments

@judemars
Copy link

Repro:

  1. Gvfs sparse --set parentFolder/childA
  2. gvfs prefetch --hydrate --folders parentFolder

Expected:
Prefetch + hydrate everything in parentFolder/childA

Actual:
Fails because it tries to prefetch + hydrate everything in parentFolder, not just childA subfolder:

Authenticating...Succeeded
Querying remote for config...Succeeded
Configured cache server: Global (xxx)
Checking that GVFS is mounted...Succeeded
Fetching blobs and hydrating files from cache server...Failed. Run 'gvfs log D:\onew7' for more info.

Log files shows a bunch of instances of "Failed to read parentFolder\childB\xxxx"

Basically, it seems like gvfs prefetch --hydrate does not limit itself to the cone of folders specified in the sparse set - it tries to prefetch + hydrate everything and fails because the files aren't on disk.

@judemars judemars added the pri3 label Jan 23, 2020
@kewillford kewillford added the domain: sparse Issues related to 'gvfs sparse' verb label Jan 23, 2020
@arvati
Copy link

arvati commented Jan 9, 2021

The expectation is that the folder paths you specify are relative to the root of the repo, not relative to your current working directory. I did like this to prefetch one subfolder:
gvfs prefetch --folders Pictures/2019/ --verbose --hydrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sparse Issues related to 'gvfs sparse' verb pri3
Projects
None yet
Development

No branches or pull requests

3 participants