You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
NFSD: fix bug for readdir of pseudofs
Commit 561f0ed498 (nfsd4: allow large readdirs) introduces a bug
about readdir the root of pseudofs.
Call xdr_truncate_encode() revert encoded name when skipping.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
committed by
J. Bruce Fields
parent
6282cd5655
commit
f41c5ad2ff
@@ -2687,6 +2687,7 @@ nfsd4_encode_dirent(void *ccdv, const char *name, int namlen,
|
|||||||
nfserr = nfserr_toosmall;
|
nfserr = nfserr_toosmall;
|
||||||
goto fail;
|
goto fail;
|
||||||
case nfserr_noent:
|
case nfserr_noent:
|
||||||
|
xdr_truncate_encode(xdr, start_offset);
|
||||||
goto skip_entry;
|
goto skip_entry;
|
||||||
default:
|
default:
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user