diff options
author | Dean Deng <deandeng@google.com> | 2020-06-30 20:47:02 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-30 20:48:59 -0700 |
commit | 20d571b0c181023cc02521ad746a2b6d91e6794d (patch) | |
tree | b18adda7286045291b740b4f1815849938f76396 /pkg/sentry/vfs/file_description.go | |
parent | c4bdd0118f5dc9090979697e31a18731968b4066 (diff) |
Allow O_DIRECT on vfs2 tmpfs files.
Updates #2923.
PiperOrigin-RevId: 319153792
Diffstat (limited to 'pkg/sentry/vfs/file_description.go')
-rw-r--r-- | pkg/sentry/vfs/file_description.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/sentry/vfs/file_description.go b/pkg/sentry/vfs/file_description.go index cd1db14ac..eb5dfd7e2 100644 --- a/pkg/sentry/vfs/file_description.go +++ b/pkg/sentry/vfs/file_description.go @@ -91,8 +91,7 @@ type FileDescription struct { // FileDescriptionOptions contains options to FileDescription.Init(). type FileDescriptionOptions struct { - // If AllowDirectIO is true, allow O_DIRECT to be set on the file. This is - // usually only the case if O_DIRECT would actually have an effect. + // If AllowDirectIO is true, allow O_DIRECT to be set on the file. AllowDirectIO bool // If DenyPRead is true, calls to FileDescription.PRead() return ESPIPE. |