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
System external storage mounts as shares instead #11182
There is currently a lot of code to manage users and groups inside the external storage app.
Furthermore, apps like encryption need special handling to find out who the users are (see #11180 and #11181)
One idea would be to get rid of the user/group part of system wide mount points.
Assigning such mount points to users would work over some kind of virtual user account "sysmountpoints" where the mount points are actually mounted as personal storage.
Then, every mount point is automatically shared with the users who should have access to it.
The advantage of this is that this would reuse the sharing code, hooks/events instead of trying to redo the same for external storage + encryption.
Example file structure for the virtual user "sysmountpoints": /mounts/sftp1 shared with "user1" and "group1" /mounts/smb1 shared with "group2"
Changing user assignation over the external storage UI would internally trigger the sharing functions as if the "sysmountpoints" user had changed the shares.
Hmm. my gut-feeling tells me that we should only refactor this if we get a real benefit out of this like for example massive performance improvements and significant features.
We can reconsider this whenever we see the benefit.
At the moment I wouldn't want to introduce this before the ext storage app is properly cleant up as per #11261
But let's leave this open to gather ideas. Playing with ideas is always good.
This is not about performance, but about maintainability.
So far we noticed again that because of system-wide external storage mount points, we need special code to handle such cases in the encryption app, and soon in the high-level file locking too.
If this was going through regular sharing, then the sharing code path would take care of it in a generic way and not require any custom code.
In fact, this can already be achieved now through other means:
Admin mounts SFTP storage as personal mount to "/sftp"
Admin shares "/sftp" with "group1", "group2", "user1", "user2"
This ticket is mostly about rewiring the system-wide mount points UI to internally use such approach.
I agree with @PVince81 also versions and trash bin needs special code to handle this use cases correctly. For example at the moment versions are created for each user independently, so there is no common versions history. To have a common version history we would need to implement a special handling similar to what we implemented for the encryption keys. Same goes for the trashbin.
Implementing system wide mount points as shares from a virtual users would solve this issues without writing and maintaining any extra line of code. I think it would be also more transparent for app developers because if it is handled as shares they don't need to think about any special treatment.
Activity
PVince81 commentedon Sep 19, 2014
CC @MTRichards @craigpg
MTRichards commentedon Oct 30, 2014
@karlitschek Curious your thoughts about this.
PVince81 commentedon Oct 31, 2014
CC @icewind1991 for further input
icewind1991 commentedon Oct 31, 2014
The other way around seems like a better approach to me, store shares in the same way as external storages, since oc7 that's pretty much what they are
karlitschek commentedon Oct 31, 2014
Hmm. my gut-feeling tells me that we should only refactor this if we get a real benefit out of this like for example massive performance improvements and significant features.
PVince81 commentedon Oct 31, 2014
We can reconsider this whenever we see the benefit.
At the moment I wouldn't want to introduce this before the ext storage app is properly cleant up as per #11261
But let's leave this open to gather ideas. Playing with ideas is always good.
PVince81 commentedon May 29, 2015
This is not about performance, but about maintainability.
So far we noticed again that because of system-wide external storage mount points, we need special code to handle such cases in the encryption app, and soon in the high-level file locking too.
If this was going through regular sharing, then the sharing code path would take care of it in a generic way and not require any custom code.
In fact, this can already be achieved now through other means:
This ticket is mostly about rewiring the system-wide mount points UI to internally use such approach.
schiessle commentedon May 29, 2015
I agree with @PVince81 also versions and trash bin needs special code to handle this use cases correctly. For example at the moment versions are created for each user independently, so there is no common versions history. To have a common version history we would need to implement a special handling similar to what we implemented for the encryption keys. Same goes for the trashbin.
Implementing system wide mount points as shares from a virtual users would solve this issues without writing and maintaining any extra line of code. I think it would be also more transparent for app developers because if it is handled as shares they don't need to think about any special treatment.