-
Notifications
You must be signed in to change notification settings - Fork 465
Mac: Fix missing files due to auth cache #270
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,7 +105,6 @@ int16_t VirtualizationRoots_LookupVnode(vnode_t vnode, vfs_context_t context) | |
| { | ||
| // TODO: check xattr contents | ||
|
|
||
|
|
||
| char path[PrjFSMaxPath] = ""; | ||
| int pathLength = sizeof(path); | ||
| vn_getpath(vnode, path, &pathLength); | ||
|
|
@@ -283,6 +282,12 @@ VirtualizationRootResult VirtualizationRoot_RegisterProviderForPath(PrjFSProvide | |
| vnode_put(virtualizationRootVNode); | ||
| } | ||
|
|
||
| if (rootIndex >= 0) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we reset the auth cache TTL back to the default upon virtualization root unmount?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we will certainly want to do that, but right now unmount doesn't call through to the kext at all so we're currently not doing any cleanup. I filed #284 to cover all of that. |
||
| { | ||
| VirtualizationRoot* root = &s_virtualizationRoots[rootIndex]; | ||
| vfs_setauthcache_ttl(vnode_mount(root->rootVNode), 0); | ||
| } | ||
|
|
||
| vfs_context_rele(vfsContext); | ||
|
|
||
| return VirtualizationRootResult { err, rootIndex }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we upping the number of threads here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally anecdotal - but I've just seen on my own machine that the higher number of threads makes any races more likely to get hit. And the more temporary/partial fixes I put in place in my other branch, the more threads I needed to reliably hit any remaining issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks.