#2434 closed task (fixed)

Magic Folder on Linux: test behaviour of inotify if a file is renamed while open

Reported by: dawuud Owned by: daira
Priority: normal Milestone: 1.12.0
Component: code-frontend-magic-folder Version: 1.10.0
Keywords: unix test-needed magic-folder Cc:
Launchpad Bug:

Description (last modified by daira)

On Unix, what happens with reference to inotify events if we rename a file while it is open? Does the path for the IN_CLOSE_WRITE event reflect the new name?

Attachments (1)

inotify-behavior.py (1.8 KB) - added by meejah at 2015-11-02T17:46:35Z.
test behavior of inotify while renaming a file you currently have open

Download all attachments as: .zip

Change History (8)

comment:1 Changed at 2015-05-27T00:34:48Z by daira

  • Component changed from unknown to code-frontend-magic-folder
  • Description modified (diff)
  • Keywords drop-upload unix test-needed added
  • Milestone changed from undecided to 1.11.0
  • Summary changed from drop-uploader inotify test rename while open to drop-upload for Linux: inotify test rename while open

comment:2 Changed at 2015-05-27T00:35:14Z by daira

  • Description modified (diff)

comment:3 Changed at 2015-06-01T16:11:09Z by daira

  • Keywords magic-folder added

Add magic-folder keyword to all drop-upload tickets.

comment:4 Changed at 2015-10-29T02:27:37Z by daira

  • Keywords drop-upload removed
  • Summary changed from drop-upload for Linux: inotify test rename while open to Magic Folder on Linux: test behaviour of inotify if a file is renamed while open

comment:5 Changed at 2015-11-02T17:45:29Z by meejah

I made a short test-program, and have verified that on Linux, using the Twisted APIs, you get the CLOSE_WRITE for the *new* filename. I will attach the test-program to this ticket.

So, the answer is "yes".

Changed at 2015-11-02T17:46:35Z by meejah

test behavior of inotify while renaming a file you currently have open

comment:6 Changed at 2015-11-04T01:18:21Z by daira

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to task

OK, that is the behaviour we assumed (and wanted), so this ticket can be closed.

comment:7 Changed at 2016-03-22T05:02:52Z by warner

  • Milestone changed from 1.11.0 to 1.12.0

Milestone renamed

Note: See TracTickets for help on using tickets.