Skip to content

System external storage mounts as shares instead #11182

Closed

Description

@PVince81

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.

What do you think ?

@schiesbn @karlitschek

Activity

  1. PVince81 commented on Sep 19, 2014

    @PVince81
    ContributorAuthor
  2. MTRichards commented on Oct 30, 2014

    @MTRichards
    Contributor

    @karlitschek Curious your thoughts about this.

  3. PVince81 commented on Oct 31, 2014

    @PVince81
    ContributorAuthor

    CC @icewind1991 for further input

  4. icewind1991 commented on Oct 31, 2014

    @icewind1991
    Contributor

    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

  5. karlitschek commented on Oct 31, 2014

    @karlitschek
    Contributor

    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.

  6. PVince81 commented on Oct 31, 2014

    @PVince81
    ContributorAuthor

    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.

  7. PVince81 commented on May 29, 2015

    @PVince81
    ContributorAuthor

    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:

    1. Admin mounts SFTP storage as personal mount to "/sftp"
    2. 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.

  8. schiessle commented on May 29, 2015

    @schiessle
    Contributor

    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.

  9. added this to the backlog milestone on Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions