Skip to content

Use oc_mounts as authoritative fstab-like list #26190

Closed

Description

@PVince81

Currently oc_mounts is populated when a user's filesystem is getting set up.
This means that when setupFS is called, it will ask all mount providers to provide mounts.
This also means that the share mount provider will have to read the shares from oc_share, every time!

How about making it work differently: the oc_mounts becomes a fstab-like list and setupFS only ever mounts what's written in there. The table must then be populated at a different time, for example whenever a share is created or an external storage added, or a user added to a group, etc. (which is likely a big challenge). Or this could be done in a background job.

@DeepDiver1975 @butonic @owncloud/filesystem

Activity

  1. added this to the backlog milestone on Sep 22, 2016
  2. butonic commented on Sep 22, 2016

    @butonic
    Contributor

    a share might not be created until a user accepts the share.

  3. PVince81 commented on Sep 22, 2016

    @PVince81
    ContributorAuthor

    Ref: #19153

  4. guruz commented on Sep 23, 2016

    @guruz
    Contributor

    I think @DeepDiver1975 proposed something similar to that at the conf.

    I think this was also the discussion when twitter scaled up:
    SELECTing all tweets from all people you follow when you load the timeline in the client
    vs.
    All your followers INSERT their tweets into your timeline each time they tweet and then you just need to SELECT your own timeline..

  5. PVince81 commented on Oct 6, 2016

    @PVince81
    ContributorAuthor

    This will become even more important once we merge #25422 which moves the external storage logic to core, because. In the past only people who had files_external enabled would likely have a performance decrease because the oc_external_* config tables need to be read every time the FS is mounted.
    Now when moving the code to core, external storages are always enabled, so even people who don't use it would get a performance decrease.

    If we have a fstab-like table then the minimum required for setting up a usable FS is reading the fstab table (oc_mounts ?). And only once someone uses the API to access any of the mounts, we might need to read the external storage config or share info to resolve it. But I guess that even that could be cached somehow.

  6. PVince81 commented on Nov 22, 2016

    @PVince81
    ContributorAuthor

    Another advantage of this idea is that users could really move around any kinds of mounts because their origin would be tracked in oc_mounts anyway, like moving a received system-wide mount: #26671 (comment)

  7. modified the milestones: 10.1, backlog on Jan 17, 2017
  8. ownclouders commented on Dec 21, 2017

    @ownclouders
    Contributor

    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.

    (This is an automated comment from GitMate.io.

  9. self-assigned this
    on Feb 3, 2018
  10. removed their assignment
    on Apr 20, 2018
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions