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

store: use Forgotten() for lifetime management with leveraging Initialized() for readiness check #1705

Closed
wants to merge 1 commit into from

Conversation

ktock
Copy link
Member

@ktock ktock commented Jun 11, 2024

Fixes: #1599
Fixes: #1594

Thanks to @iain-macdonald 's patch for go-fuse (hanwen/go-fuse#520), we can rely on Inode.Forgotten to check if that inode is reusable or not. This commit cherry-picks @iain-macdonald's patch to ktock/go-fuse@f59a74e and imports to stargz-snapshotter. That patch adds Initialized() method that can be used for checking the readiness of Forgotten() metehod and we can avoid the issues like hanwen/go-fuse#504 and #1594 .

@ktock ktock force-pushed the inorelease-l-forked branch from 9ad39ea to 62e9b99 Compare June 11, 2024 09:13
@ktock ktock marked this pull request as draft June 11, 2024 09:35
@ktock ktock changed the title store: use Forgotten() for lifetime management with leveraging Initialized() for readiness check [WIP] store: use Forgotten() for lifetime management with leveraging Initialized() for readiness check Jun 11, 2024
@ktock ktock force-pushed the inorelease-l-forked branch from 62e9b99 to 72418a3 Compare June 11, 2024 09:50
@ktock ktock marked this pull request as ready for review June 11, 2024 11:07
@ktock ktock changed the title [WIP] store: use Forgotten() for lifetime management with leveraging Initialized() for readiness check store: use Forgotten() for lifetime management with leveraging Initialized() for readiness check Jun 11, 2024
@@ -144,3 +144,5 @@ replace (
github.com/containerd/stargz-snapshotter/estargz => ../estargz
github.com/containerd/stargz-snapshotter/ipfs => ../ipfs
)

replace github.com/hanwen/go-fuse/v2 => github.com/ktock/go-fuse/v2 v2.1.1-0.20240611080711-f59a74eb644a
Copy link
Member

Choose a reason for hiding this comment

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

Do you have a PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, there is a PR for this: hanwen/go-fuse#520

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.

ino reuse in newInodeWithID
2 participants