Giter Club home page Giter Club logo

Comments (7)

Nikratio avatar Nikratio commented on July 30, 2024

I cannot reproduce this with FUSE 2.9.3 and sshfs 2.5. There is no error from ls, and the file shows up again after about 10 seconds. Could you try to reproduce with the newest versions? Also, (to simplify things) can you try to reproduce with exampeles/fusexmp_fh as well?

from libfuse.

d-a-v avatar d-a-v commented on July 30, 2024

Hi,

For what it's worth:

local> mkdir empty; cd empty; sshfs localhost:empty /mnt
remote> cd /mnt
remote> touch pan
local> rm pan
remote> touch pan
touch: cannot touch β€˜pan’: No such file or directory
remote> ls
remote> touch pan
remote> ls
pan

fuse: kernel api 7.23
debian jessie 8
fuse: 2.9.3
fusermount: 2.9.3
linux 4.4.11
sshfs: 2.5
using FUSE kernel interface version 7.19

from libfuse.

Nikratio avatar Nikratio commented on July 30, 2024

@d-a-v There's no bug in what you've showed. touch may fail with ENOENT even on a local file system without using FUSE. This is because touch needs to issue two different system calls (for creating the file or/and for changing its timestamps), and the file may be deleted (or created) in between those two syscalls. The time window for this race condition is just a lot shorter when there's no sshfs involved (so you're unlikely to see this in practice).

from libfuse.

d-a-v avatar d-a-v commented on July 30, 2024

I understand.
However, even if this is unrelated, this is quite strange that:
sleep 10; touch pan written after the other console's rm returns a 'no such file'. (a sleep 60 instead is ok).
I won't further interfere on this bug :)

from libfuse.

mnottale avatar mnottale commented on July 30, 2024

Can't reproduce it using example/fusexmp_fh from libfuse 2.9.7, but issue is still there when I try with libfuse2.9.7+sshfs 2.7

from libfuse.

Nikratio avatar Nikratio commented on July 30, 2024

In other words, this is an sshfs bug. Or am I missing something?

from libfuse.

Nikratio avatar Nikratio commented on July 30, 2024

I'm closing this now, since it seems to be a problem with sshfs rather than libfuse.

from libfuse.

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.