-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
I came across this when I did some debugging on SMB, but this is not limited to.
My external storage is capable of snapshots. These snapshots are present in each directory and have as entrypoint a particular directory name. I can enable the view on this directory from the storage point of view, then when you browse with your desktop and enter the snapshot directory name, you can walk into. If I disable this view, I can enter the snapshot directory name, but it behaves like a non existing folder.
As this is a good thing to recover files without tape access, enabeling the view has its benefits.
The bad thing with the current behaviour of owncloud is, if you have a TB volume shared, snapshot directory access enabled and let´s say 10 snapshots you rotate, you scan 11TB (1 + 10)...
And each rescan does then the same
And each mount point does the same.
The idea is now, that there is a possibility in owncloud to exlude the view, access and scan of these directories. Maybe a config.php parameter array with names to exclude.
In my case, the folder names to exclude would be ~snapshot and .snapshot
(The first character is access protocol dependent, ~ = SMB, . = NFS)
Please consider, that these kind of storages are more likely to be found in enterprise environments, but then snapshots are liked and heavily used ...