Git Product home page Git Product logo

Comments (7)

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @samthursfield] on Jun 6, 2017, 10:36

A few years ago Adam Coldrick implemented this feature for Morph using overlayfs or unionfs-fuse. This never got merged to master.

The proposed changes are here -- long since abandoned but maybe useful as they were tested and working at one point.

  1. https://gerrit.baserock.org/#/c/290/
  2. https://gerrit.baserock.org/#/c/289/
  3. https://gerrit.baserock.org/#/c/288/

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @tristanvb] on Jun 7, 2017, 10:29

mentioned in commit 70914c8

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @tristanvb] on Jun 11, 2017, 14:00

This is currently implemented in the 'safe-hardlinks' branch and seems to be working well.

Need to just check that everything is working, I think some cases of bst shell are broken by the API churn so will merge this after a little bit of cleanup.

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @tristanvb] on Jun 13, 2017, 13:04

The new SafeHardlinks fuse layer is now implemented in master.

Essentially this means:

  • If the sandbox root is read-only, the fuse layer is not used
  • If the sandbox root is read-write, it is protected by the fuse layer
  • Mount points for staged Sources or build output are not protected by the fuse layer

The SafeHardlinks fuse layer acts as a regular passthrough except that in the cases where:

  • File will be modified
    • File is going to be opened for writing or
    • File is going to change ownership or
    • File is going to change mode bits
  • And the file is not a directory (which cannot be hardlinked)
  • And the file has more than one link (it is a hardlink)

Then the file will first be copied into a temporary directory, and replaced with it's copy, ensuring it is no longer a hardlink into the ostree repository or checkout.

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @tristanvb] on Jun 13, 2017, 13:04

closed

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @toscalix] on Jul 25, 2018, 14:36

marked this issue as related to #504

from bst-staging.

Cynical-Optimist avatar Cynical-Optimist commented on September 14, 2024

In GitLab by [Gitlab user @toscalix] on Jul 25, 2018, 14:36

removed the relation with #504

from bst-staging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.