Giter Site home page Giter Site logo

Comments (8)

fangism avatar fangism commented on September 21, 2024

This is on linux. Not sure if it looks the same on other platforms.

from fsatrace.

jacereda avatar jacereda commented on September 21, 2024

What would be the expected behaviour from a build system perspective? I would assume queries/reads should follow symlinks but deletes shouldn't, what do you think?

from fsatrace.

jacereda avatar jacereda commented on September 21, 2024

@fangism ping

from fsatrace.

fangism avatar fangism commented on September 21, 2024

[Sorry, I've been out for a few weeks.]

From the original comment, this might seem more reasonable:

$ touch foo
$ ln -s foo bar
$ fsatrace erwdtmq /dev/stdout -- rm -f bar
r|/usr/bin/rm
q|/home/fangism/bar
d|/home/fangism/bar

But I haven't dug into the details of how operations on symlinks are traced.

from fsatrace.

jacereda avatar jacereda commented on September 21, 2024

If queries/reads don't follow symlinks that would put a burden on the build system. The one I'm using would certainly need to be modified to take into account this fact.

I propose to report the symlink only when deleting, reporting the linked file elsewhere. Do you have any example of a situation where this would be a problem in a build system?

from fsatrace.

fangism avatar fangism commented on September 21, 2024

Using the above rm example, what would your proposed trace look like?

from fsatrace.

jacereda avatar jacereda commented on September 21, 2024
r|/usr/bin/rm
q|/home/fangism/foo
d|/home/fangism/bar

from fsatrace.

fangism avatar fangism commented on September 21, 2024
r|/usr/bin/rm
q|/home/fangism/foo
d|/home/fangism/bar

This is an improvement, and should let us proceed further.

from fsatrace.

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.