diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-09-18 15:41:13 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-18 15:42:22 -0700 |
commit | fd222d62eda8b447fa0e11260f64fdb94e5e7084 (patch) | |
tree | 9d5522fd1ef87dfbe974c04cc18977f5619dbdd6 /pkg/sentry/fs/fs.go | |
parent | 7967d8ecd57383f406d202f7e2f65e275bb36fc8 (diff) |
Short-circuit Readdir calls on overlay files when the dirent is frozen.
If we have an overlay file whose corresponding Dirent is frozen, then we should
not bother calling Readdir on the upper or lower files, since DirentReaddir
will calculate children based on the frozen Dirent tree.
A test was added that fails without this change.
PiperOrigin-RevId: 213531215
Change-Id: I4d6c98f1416541a476a34418f664ba58f936a81d
Diffstat (limited to 'pkg/sentry/fs/fs.go')
0 files changed, 0 insertions, 0 deletions