-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nydusd: make copen always return right file size
If we fail to create a blob object and return an error in the copen cmd for blob fscache cookie , the erofs will be mounted but the blob data can not be accessed. The following requests will not be sent to the user daemon , then it has no chance to handle this case. Make copen always return the right file size , then the following requests may be dispatched to user daemon, we can do some retry later. For now, use an asynchronous thread to create blob object on open cmd, and will wait for the result before first ondemand read. Signed-off-by: Xin Yin <[email protected]>
- Loading branch information
Xin Yin
committed
Jul 25, 2022
1 parent
3586677
commit 82f6712
Showing
1 changed file
with
95 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters