threefoldtech / 0-fs

A new filesystem for zero-os that leverage on unionfs and a thin fuse layer to get the files on demand
Apache License 2.0
0 stars 1 forks source link

rofs: do not forward permissions from cache when file are already open #45

Closed maxux closed 3 years ago

maxux commented 3 years ago

When a file is open, a loopback handler is returned and attribute from local cache is used for underlaying call.

This cause mismatch attributes (permissions, owner, ...) as expected when a file is already open and attributes are requested.

This fix this behavior. A copy of expected attributes are saved during the Open call request and theses attributes are returned for underlaying calls.

This is a possible fix for https://github.com/threefoldtech/0-flist/issues/32