store: use OnForget API for checking if a node is reusable by ktock · Pull Request #1808 · containerd/stargz-snapshotter (original) (raw)
Fixes: #1594
Related to: #1599 , #1705
Based on: #1804 (for passing CRI-O CI)
Issues mentioned in #1594 have been discussed in go-fuse repo (hanwen/go-fuse#520, hanwen/go-fuse#504) and it recently added OnForget API (hanwen/go-fuse#504) that can be used for checking if a node is reusable or not.
This commit uses that feature to fix #1594.