You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use fileid for files_target for shares, have a real existing mount point folder #14396
The share is added into "oc_share" and "files_target" is set to "test".
The folder "test" is mounted in "user2"'s filesystem based on the name in "files_target"
When "user2" renames "test" (the mount point), we need special logic because the name is actually in the "oc_share" table
The problem with this is that the virtual shared folder's name is in the "oc_share" table which requires a lot of specialized logic to handle such cases.
I suggest to change the mount logic to work like Linux filesystems, which means that the target mount point must be an existing empty folder (or empty file):
auto-create a folder "test" in "user2"'s filesystem. This gives it a real entry in "oc_filecache"
create an entry in "oc_share" but have "files_target" point to the fileid of that empty folder
whenever "user2" renames or moves "test", there is no need for special logic any more, no need to touch "oc_share".
Another problem that was discovered recently is that we store the full path to the target in "files_target" which can bump against max length limits, and also max index length limits (#17639).
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Activity
PVince81 commentedon Feb 20, 2015
@nickvergessen @schiesbn @icewind1991
PVince81 commentedon Jul 14, 2015
Another problem that was discovered recently is that we store the full path to the target in "files_target" which can bump against max length limits, and also max index length limits (#17639).
rullzer commentedon Jul 15, 2015
Yep I agree that the current setup of the oc_share table is far from optimal. Changes like this should really go into sharing 2.0
PVince81 commentedon Feb 28, 2017
An alternative to this is simply using the oc_mounts table, which didn't exist at the time of this writing.
See #26190
ownclouders commentedon Jan 13, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)
ownclouders commentedon Feb 23, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)