diff options
author | Hongnan Li <[email protected]> | 2022-07-22 16:27:32 +0800 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2022-07-31 22:26:29 +0800 |
commit | ecce9212d0fd7a2d4a4998f0c4623a66887e14c8 (patch) | |
tree | f99c34b9de7778f6fdb7a50c157191816822261c /lib/mpi/mpi-sub-ui.c | |
parent | cc2a171372c68ee64916eb65a962b3aba9ea56ad (diff) |
erofs: update ctx->pos for every emitted dirent
erofs_readdir update ctx->pos after filling a batch of dentries
and it may cause dir/files duplication for NFS readdirplus which
depends on ctx->pos to fill dir correctly. So update ctx->pos for
every emitted dirent in erofs_fill_dentries to fix it.
Also fix the update of ctx->pos when the initial file position has
exceeded nameoff.
Fixes: 3e917cc305c6 ("erofs: make filesystem exportable")
Signed-off-by: Hongnan Li <[email protected]>
Signed-off-by: Jeffle Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions