name cache: nfs41_lookup() inserts negative entry on NOENT

Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
Casey Bodley 2010-10-11 16:05:26 -04:00
parent 6bc86c1bff
commit bfae29e9c2

View file

@ -227,7 +227,11 @@ static int server_lookup(
}
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;
if (res->getfh[i].status == NFS4ERR_MOVED) {
/* save enough information to follow the referral */
path_fh_copy(&res->referral->parent, file);