inotify DELETE_SELF notification disappears on ecryptfs mount
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
Medium
|
Tyler Hicks | ||
ecryptfs-utils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Colin Ian King | ||
Natty |
Fix Released
|
Medium
|
Colin Ian King |
Bug Description
Binary package hint: ecryptfs-utils
The IN_DELETE_SELF mask for inotify_add_watch indicates that an event should be emitted when the watched path is deleted. The attached program uses this feature successfully on a "normal" filesystem (eg ext3). When run in an ecryptfs mount however, the notification never appears and the program hangs indefinitely.
Tested using a brand new ecryptfs mount, created using:
$ mkdir ecryptfs-source
$ mkdir ecryptfs-dest
$ sudo mount -t ecryptfs ecrypt-source/ ecrypt-dest/
[ select defaults ]
Then run the program with ecrypt-dest as the working directory.
ProblemType: Bug
Architecture: i386
Date: Tue Feb 22 22:30:18 2011
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: libecryptfs0 81-0ubuntu3
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: ecryptfs-utils
Uname: Linux 2.6.31-
tags: | added: patch |
Changed in ecryptfs-utils (Ubuntu): | |
status: | Incomplete → Fix Released |
Changed in ecryptfs-utils (Ubuntu Lucid): | |
status: | Incomplete → Fix Released |
Changed in ecryptfs-utils (Ubuntu Natty): | |
status: | New → Fix Released |
Thanks for the interesting bug report.
I personally have not yet tried inotify on an ecryptfs directory, but that does sound like a reasonable use case.
I'm copying this bug upstream. Tyler, have you ever tested inotify events on an ecryptfs mount?