diff options
author | Tiwei Bie <tiwei.btw@antgroup.com> | 2020-09-10 21:47:17 +0800 |
---|---|---|
committer | Tiwei Bie <tiwei.btw@antgroup.com> | 2020-09-15 11:12:29 +0800 |
commit | 1adedad81c0ddc68526d616ad31daf2af0135f47 (patch) | |
tree | a06a973b6634ad77fed67164567710f39c7df066 /pkg/coverage | |
parent | 365545855f7713236d77d3e263ad09ebffa85bb2 (diff) |
Fix proc.(*fdDir).IterDirents for VFS2
Currently the returned offset is an index, and we can't
use it to find the next fd to serialize, because getdents
should iterate correctly despite mutation of fds. Instead,
we can return the next fd to serialize plus 2 (which
accounts for "." and "..") as the offset.
Fixes: #3894
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Diffstat (limited to 'pkg/coverage')
0 files changed, 0 insertions, 0 deletions