From 20d571b0c181023cc02521ad746a2b6d91e6794d Mon Sep 17 00:00:00 2001 From: Dean Deng Date: Tue, 30 Jun 2020 20:47:02 -0700 Subject: Allow O_DIRECT on vfs2 tmpfs files. Updates #2923. PiperOrigin-RevId: 319153792 --- pkg/sentry/vfs/file_description.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/sentry/vfs/file_description.go') 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. -- cgit v1.2.3