summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/BUILD
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2020-08-07 20:06:39 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-07 20:08:47 -0700
commit3be26a271cd0fc9618fbcb34e1a2a84c4f234c86 (patch)
tree1ff6717aae2104543670375cb9c90010b2efccf4 /test/runtimes/BUILD
parent977618c8e155c0178979ff9f8ea05bbb5c0886b5 (diff)
[vfs2] Fix tmpfs mounting.
Earlier we were using NLink to decide if /tmp is empty or not. However, NLink at best tells us about the number of subdirectories (via the ".." entries). NLink = n + 2 for n subdirectories. But it does not tell us if the directory is empty. There still might be non-directory files. We could also not rely on NLink because host overlayfs always returned 1. VFS1 uses Readdir to decide if the directory is empty. Used a similar approach. We now use IterDirents to decide if the "/tmp" directory is empty. Fixes #3369 PiperOrigin-RevId: 325554234
Diffstat (limited to 'test/runtimes/BUILD')
0 files changed, 0 insertions, 0 deletions