[Bugs] [Bug 1500269] New: opening a file that is destination of rename results in ENOENT errors

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 10 09:59:20 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1500269

            Bug ID: 1500269
           Summary: opening a file that is destination of rename results
                    in ENOENT errors
           Product: GlusterFS
           Version: mainline
         Component: fuse
          Assignee: bugs at gluster.org
          Reporter: rgowdapp at redhat.com
                CC: bugs at gluster.org



Created attachment 1336716
  --> https://bugzilla.redhat.com/attachment.cgi?id=1336716&action=edit
rename.sh

Description of problem:

Consider two programs:

rename:
=======
while true; do touch newfile; mv newfile file; done

open:
=====
keeps opening an fd on "file"

If I run these two programs in parallel (after making sure rename results in
"file"), open on existing file "file" fails with ENOENT. Since "file" always
existed and rename is atomic open should not fail with ENOENT.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list