cifs: STATUS_INVALID_PARAMETER/EINVAL returned when listed directory contents for some files

Solution Verified - Updated -

Issue

Listing directory contents return error for some of the files :

# ls -l
ls: cannot access 'file2': Invalid argument
ls: cannot access 'file3': Invalid argument
ls: cannot access 'file4': Invalid argument
total 200
drwxrwxr-x    2 root   root            81520 Sep 09  2020 file1
d??????????   ? ?      ?                   ?            ? file2
d??????????   ? ?      ?                   ?            ? file3
d??????????   ? ?      ?                   ?            ? file4

Environment

  • RHEL8.3 or below
  • cifs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content