Вот ссылка на эту клиентскую библиотеку NFS , но выглядит многообещающе, цитируя:
The NFS client handles only one connection at a time, but no connection takes
very long.
Read requests must be for under 8000 bytes. This has to do with packet size.
You don't want to know.
Once 256 files are open simultaneously -- by all applications, since the client
does not discriminate between requests in any way -- file handles begin to be
overwritten. The client prints an error.
If the client has problems opening sockets it quits gracefully, including
returning a message over the socket to the application. The exception is if
it is given a bad hostname to mount, in which case it just responds with failure
rather than quitting.
If the formatting of the code looks messed up, it's because the code was written
half on a Mac (tab = 4 spaces).
Вот еще одна ссылка, которая может объяснить ограничение 256 файлов, одновременно открытых здесь, на sourceforge.net , см. B3 FAQ там на sourceforge ...
Редактировать: Вот вопрос, который был размещен здесь на Stackoverflow относительно рекурсивного чтения каталога, который можно легко изменить на scandir ...