readdir: look up attributes for referral entries
handle rdattr_error == NFS4ERR_MOVED by calling nfs41_lookup() for attributes Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
0d3af99159
commit
680e415104
1 changed files with 7 additions and 0 deletions
|
|
@ -276,6 +276,13 @@ static int readdir_copy_entry(
|
||||||
*dst_pos += info->NextEntryOffset;
|
*dst_pos += info->NextEntryOffset;
|
||||||
*dst_len -= info->NextEntryOffset;
|
*dst_len -= info->NextEntryOffset;
|
||||||
|
|
||||||
|
if (entry->attr_info.rdattr_error == NFS4ERR_MOVED) {
|
||||||
|
/* look up attributes for referral entries, but ignore return value;
|
||||||
|
* it's okay if lookup fails, we'll just write garbage attributes */
|
||||||
|
lookup_entry(args->root, args->state->session,
|
||||||
|
&args->state->file, entry);
|
||||||
|
}
|
||||||
|
|
||||||
switch (args->query_class)
|
switch (args->query_class)
|
||||||
{
|
{
|
||||||
case FileNamesInformation:
|
case FileNamesInformation:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue