name cache: nfs41_lookup() inserts negative entry on NOENT
Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
parent
6bc86c1bff
commit
bfae29e9c2
1 changed files with 4 additions and 0 deletions
|
|
@ -227,7 +227,11 @@ static int server_lookup(
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
|
if (res->lookup[i].status == NFS4ERR_NOENT)
|
||||||
|
nfs41_name_cache_insert(session_name_cache(session),
|
||||||
|
path, args->lookup[i].name, NULL, NULL, NULL);
|
||||||
status = res->lookup[i].status; if (status) break;
|
status = res->lookup[i].status; if (status) break;
|
||||||
|
|
||||||
if (res->getfh[i].status == NFS4ERR_MOVED) {
|
if (res->getfh[i].status == NFS4ERR_MOVED) {
|
||||||
/* save enough information to follow the referral */
|
/* save enough information to follow the referral */
|
||||||
path_fh_copy(&res->referral->parent, file);
|
path_fh_copy(&res->referral->parent, file);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue