diff options
author | Michael Pratt <mpratt@google.com> | 2018-07-13 10:23:16 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-13 10:24:18 -0700 |
commit | f09ebd9c71eecdfb79f64b6abb26db3b66b8156b (patch) | |
tree | cde06a77e56fa984e19be16bb4f2e06265f02382 /pkg | |
parent | a28b274abb3ac0ce652ee395d5a48e7b7fdfb3ad (diff) |
Note that Mount errors do not require translations
PiperOrigin-RevId: 204490639
Change-Id: I0fe26306bae9320c6aa4f854fe0ef25eebd93233
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/fs/filesystems.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/fs/filesystems.go b/pkg/sentry/fs/filesystems.go index 7cd76dfe9..e2c255be6 100644 --- a/pkg/sentry/fs/filesystems.go +++ b/pkg/sentry/fs/filesystems.go @@ -48,6 +48,8 @@ type Filesystem interface { // Mount generates a mountable Inode backed by device and configured // using file system independent flags and file system dependent // data options. + // + // Mount may return arbitrary errors. They do not need syserr translations. Mount(ctx context.Context, device string, flags MountSourceFlags, data string) (*Inode, error) // AllowUserMount determines whether mount(2) is allowed to mount a |