diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-28 04:36:07 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-28 04:36:07 +0000 |
commit | 9e9a5f18d48dc0ca991f3950fd5349f12d84eee5 (patch) | |
tree | 343878864329e48c6db95bb88adda5ca6764b760 /pkg/sentry/kernel/fasync | |
parent | 21e2d1fe0c8adad3082f16fb0dc4e44fbffbee25 (diff) | |
parent | e8f1a5c1f652ba7abb8c4bd842d6afdcab03865a (diff) |
Merge release-20200622.1-39-ge8f1a5c1f (automated)
Diffstat (limited to 'pkg/sentry/kernel/fasync')
-rw-r--r-- | pkg/sentry/kernel/fasync/fasync.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/fasync/fasync.go b/pkg/sentry/kernel/fasync/fasync.go index d32c3e90a..323f1dfa5 100644 --- a/pkg/sentry/kernel/fasync/fasync.go +++ b/pkg/sentry/kernel/fasync/fasync.go @@ -20,15 +20,21 @@ import ( "gvisor.dev/gvisor/pkg/sentry/fs" "gvisor.dev/gvisor/pkg/sentry/kernel" "gvisor.dev/gvisor/pkg/sentry/kernel/auth" + "gvisor.dev/gvisor/pkg/sentry/vfs" "gvisor.dev/gvisor/pkg/sync" "gvisor.dev/gvisor/pkg/waiter" ) -// New creates a new FileAsync. +// New creates a new fs.FileAsync. func New() fs.FileAsync { return &FileAsync{} } +// NewVFS2 creates a new vfs.FileAsync. +func NewVFS2() vfs.FileAsync { + return &FileAsync{} +} + // FileAsync sends signals when the registered file is ready for IO. // // +stateify savable |