diff options
author | Justine Olshan <justineolshan@google.com> | 2018-07-27 12:26:42 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-27 12:27:46 -0700 |
commit | 2793f7ac5f96b474decfff68cfde86bb5c2ed0a4 (patch) | |
tree | a8ac11c5b9066e98d4f0ba8b1c1d4b1c77908ff5 /pkg/sentry/fs/flags.go | |
parent | be7fcbc5582fe831b5ec63f773d867d7591e27a1 (diff) |
Added the O_LARGEFILE flag.
This flag will always be true for gVisor files.
PiperOrigin-RevId: 206355963
Change-Id: I2f03d2412e2609042df43b06d1318cba674574d0
Diffstat (limited to 'pkg/sentry/fs/flags.go')
-rw-r--r-- | pkg/sentry/fs/flags.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/fs/flags.go b/pkg/sentry/fs/flags.go index 7a8eefd02..810452584 100644 --- a/pkg/sentry/fs/flags.go +++ b/pkg/sentry/fs/flags.go @@ -45,6 +45,12 @@ type FileFlags struct { // Async indicates that this file sends signals on IO events. Async bool + + // LargeFile indicates that this file should be opened even if it has + // size greater than linux's off_t. When running in 64-bit mode, + // Linux sets this flag for all files. Since gVisor is only compatible + // with 64-bit Linux, it also sets this flag for all files. + LargeFile bool } // SettableFileFlags is a subset of FileFlags above that can be changed |