Merge lp:~rye/ubuntuone-client/ignore-in-close-write-in-dirs into lp:ubuntuone-client
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Manuel de la Peña | ||||
Approved revision: | 1247 | ||||
Merged at revision: | 1253 | ||||
Proposed branch: | lp:~rye/ubuntuone-client/ignore-in-close-write-in-dirs | ||||
Merge into: | lp:ubuntuone-client | ||||
Diff against target: |
75 lines (+51/-0) 2 files modified
tests/platform/filesystem_notifications/test_linux.py (+41/-0) ubuntuone/platform/filesystem_notifications/linux.py (+10/-0) |
||||
To merge this branch: | bzr merge lp:~rye/ubuntuone-client/ignore-in-close-write-in-dirs | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Manuel de la Peña (community) | Approve | ||
dobey (community) | Approve | ||
Review via email: mp+106612@code.launchpad.net |
Commit message
Ignore IN_CLOSE_WRITE for directories
Description of the change
If you approve this then please also approve https:/
This branch adds the same types of filters as are already in place to make sure that events IN_OPEN and IN_CLOSE_NOWRITE work only on files.
eCryptFS layer used in Ubuntu for Private directories can send IN_CLOSE_WRITE on directories breaking syncdaemon and preventing the users from running Ubuntu One with ~/.Private directory.
To test:
0. Before patching:
1. Create a private ecryptfs directory: ecryptfs-
2. After relogin add underlying ~/.Private folder to Ubuntu One: u1sdtool --create-
3. Notice that files do upload
4. Open this directory and put another file in it.
At this point no files will be uploaded for any Ubuntu One directory due to the unexpected event from INotify subsystem. The log will show:
exceptions.
5. Apply the patch and restart syncdaemon.
6. Add another file to the directory. Notice that the amount of entries in https:/