-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize scanner for root storage to disable scanning. #20435
Comments
cc @PVince81 |
@MTRichards Please provide a milestone. |
Once a solution for this is available a backport to stable branches is highly appreciated. cc @karlitschek |
sure. i hope we can come up with a fix that is backportable without a big risk |
I dont think we can have a nice backportable sollution here, for older versions the blacklist should work for the original issue |
I get this is a blue ticket, but ... why are we disabling file scan? Is it that it is scanning a lot of folders that should not be scanned in root? How does not scanning root help with 27M rows in the database? Sorry, don't have any context. |
One of the problems is non-oc files in the data directory being scanned but the idea behind this issue is broader in scope in how we handle the root storage. I don't think this issue should be linked to the original blue ticket since it was more raised as a long term improvement on handling the root storage. |
Ok, we should be limiting our scan to ownCloud files...how do we know if they are ownCloud files? Don't we assume the ownCloud root data directory is owned by ownCloud? Is there a case where this is an unreasonable assumption? Perhaps in windows home directories and other external storage? Seems there is if it is the root cause of 27M file cache entries, but why are there non ownCloud files in there? The long term answer is then something for 9.1 or later. But without a reference ticket or any context I can't judge the importance. |
The original case was caused by a folder called |
hmmm. there was aseperate issue/pr somewhere to make it possible to ignore specific files and folders that come from the filesystem and don't containand owncloud payload. this sounds like the right approach. but can't find the issue at the moment. |
#19385 that one? |
yes. and the linked PR |
Excellent, THAT makes sense and now I understand. Thanks @MorrisJobke @karlitschek . What would it take to get that in? |
That's what the blacklist should be used for, it might need to be extended to handle some extra use cases but that seems the correct place to handle that. Since this issue is about a specific "would be nice to have" improvement to our handling of the root storage and was never intended as direct fix for the blue tick we should remove the blue ticket label and move the discussion about ignoring files to a better place |
@icewind1991 Is this a filescan blacklist that you are talking about? |
@felixboehm can you open a github for the customer issue and link it to this one, get a support case opened, and tag the new github with the blue ticket? |
The blacklist is currently a config option in It's currently used to block |
Ah, ok - I understand and that keeps client side hidden files off the server, in addition to the sync hidden file checkbox on the client. How does that work for a directory like .snapshots that is created on the server in the data directory and filescan? We would extend that to not scan a blacklist directory? Ok. Any sense for the level of effort here? |
The blacklist is a hard block on the server side, if you add |
Already present: owncloud/enterprise#901 |
An alternative fix from @MorrisJobke was provided here recently: #22565 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The scanner for the root folder be customized to not put entries in the cache for the root folder
The text was updated successfully, but these errors were encountered: