diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-14 22:43:00 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-14 22:43:00 +0000 |
commit | 8e4f95211bb39aade8e831bcad252a1a6d3a3980 (patch) | |
tree | e1e4846b066bc228b2230a684d5198e9dd87c1e7 /pkg/sentry/vfs/file_description.go | |
parent | 4c47e89ed5a331613c49b282c396894bdd48a0aa (diff) | |
parent | 3557b2665198b57c04924ad4be8dbf9e42cedf71 (diff) |
Merge release-20200211.0-22-g3557b26 (automated)
Diffstat (limited to 'pkg/sentry/vfs/file_description.go')
-rwxr-xr-x | pkg/sentry/vfs/file_description.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/sentry/vfs/file_description.go b/pkg/sentry/vfs/file_description.go index 5bac660c7..9a1ad630c 100755 --- a/pkg/sentry/vfs/file_description.go +++ b/pkg/sentry/vfs/file_description.go @@ -435,11 +435,11 @@ type Dirent struct { // IterDirentsCallback receives Dirents from FileDescriptionImpl.IterDirents. type IterDirentsCallback interface { - // Handle handles the given iterated Dirent. It returns true if iteration - // should continue, and false if FileDescriptionImpl.IterDirents should - // terminate now and restart with the same Dirent the next time it is - // called. - Handle(dirent Dirent) bool + // Handle handles the given iterated Dirent. If Handle returns a non-nil + // error, FileDescriptionImpl.IterDirents must stop iteration and return + // the error; the next call to FileDescriptionImpl.IterDirents should + // restart with the same Dirent. + Handle(dirent Dirent) error } // OnClose is called when a file descriptor representing the FileDescription is |