Re: Python 3.8 os.listdir EINVAL on large directories

2020-07-26 Thread Alceu Rodrigues de Freitas Junior
I'm guessing that the usage of getdents was intentional: I've used this system call in the same situation (thousands of entries in a directory, inside a NFS exported directory) to avoid calling stat() in each entry returned by getdents. It is indead a "low level" system call, and usually readdir i

Re: Python 3.8 os.listdir EINVAL on large directories

2020-07-26 Thread Aaron Miller
Hi Alceu, Note that there are additional messages about this in tech@. --Aaron On July 26, 2020 8:53:00 AM PDT, Alceu Rodrigues de Freitas Junior wrote: >I'm guessing that the usage of getdents was intentional: I've used this >system call in the same situation (thousands of entries in a direc

Python 3.8 os.listdir EINVAL on large directories

2020-07-25 Thread Aaron Miller
Hi all, I am getting a stacktrace from the borg command in the borgbackup package while checking a backup (see bottom of email for full output, since it's verbose). The relevant part is this: filenames = os.listdir(os.path.join(data_path, dir)) OSError: [Errno 22] Invalid argument: '/mnt/th