summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/anonfs.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-06-23 20:04:15 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-23 20:05:28 -0700
commit399c52888db609296fd1341ed0daa994ad2d02b0 (patch)
tree682a3873093a40dd1b4aca47f48f7a1c5ff4c63e /pkg/sentry/vfs/anonfs.go
parent2189e0a660e8355167bee4939fffeb57f0312b5d (diff)
Resolve remaining inotify TODOs.
Also refactor HandleDeletion(). Updates #1479. PiperOrigin-RevId: 317989000
Diffstat (limited to 'pkg/sentry/vfs/anonfs.go')
-rw-r--r--pkg/sentry/vfs/anonfs.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/sentry/vfs/anonfs.go b/pkg/sentry/vfs/anonfs.go
index 746af03ec..641e3e502 100644
--- a/pkg/sentry/vfs/anonfs.go
+++ b/pkg/sentry/vfs/anonfs.go
@@ -300,17 +300,15 @@ func (d *anonDentry) DecRef() {
// InotifyWithParent implements DentryImpl.InotifyWithParent.
//
-// TODO(gvisor.dev/issue/1479): Implement inotify.
+// Although Linux technically supports inotify on pseudo filesystems (inotify
+// is implemented at the vfs layer), it is not particularly useful. It is left
+// unimplemented until someone actually needs it.
func (d *anonDentry) InotifyWithParent(events, cookie uint32, et EventType) {}
// Watches implements DentryImpl.Watches.
-//
-// TODO(gvisor.dev/issue/1479): Implement inotify.
func (d *anonDentry) Watches() *Watches {
return nil
}
// OnZeroWatches implements Dentry.OnZeroWatches.
-//
-// TODO(gvisor.dev/issue/1479): Implement inotify.
func (d *anonDentry) OnZeroWatches() {}