mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-09 03:04:00 +08:00
Change ENOENT to ESTALE for looking up paths to handle rename race conditions
As done in https://github.com/libfuse/libfuse/pull/636
This commit is contained in:
parent
c4c35a9ad0
commit
3f060f4512
|
@ -921,7 +921,7 @@ try_get_path(struct fuse *f,
|
||||||
|
|
||||||
for(node = get_node(f,nodeid); node->nodeid != FUSE_ROOT_ID; node = node->parent)
|
for(node = get_node(f,nodeid); node->nodeid != FUSE_ROOT_ID; node = node->parent)
|
||||||
{
|
{
|
||||||
err = -ENOENT;
|
err = -ESTALE;
|
||||||
if(node->name == NULL || node->parent == NULL)
|
if(node->name == NULL || node->parent == NULL)
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user