Repository navigation
[POC] Store file id in extended attributes where possible - #14546
icewind1991 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Does it mean you need to add getAttribute and setAttribute to the default storage wrapper, to make sure they are forwarded to the underlying storage ?
There was a problem hiding this comment.
No, there are magic methods to handle that
|
Sweet. We should probably also check for file id clashes. What happens if two files have the same file id attribute ? (for whatever reason) |
|
The inspection completed: No issues found |
|
Refer to this link for build results (access rights to CI server needed): |
|
@icewind1991 rebase needed |
|
I wonder if we should do this as an optional separate app and register a storage wrapper or something ? This requires the FS to support xattr and the FS must be local, so no external storage (except the one of type "Local"). |
|
Some external storages support adding arbitrary metadata to files which could be used. I'm not sure if this can be cleanly implemented in an app due to the changes to the scanner logic (which apps cant overwrite without hacks) |
|
Would it make sense to move this to an app instead ? |
|
This could be an alternative implementation for the upcoming storage based cache Händler.i vote die close for the time being. |

Requires http://pecl.php.net/package/xattr to be installed and the filesystem to support user extended attributes (default on btrfs, mount option for ext(3|4) iirc)
To test:
cc @PVince81 @DeepDiver1975