Why dar tells me that he failed to open a directory, while I have excluded this directory?
Reading the contents of a directory is done using the usual system call (opendir/readdir/closedir). The first call (opendir) let dar design which directory to inspect, the dar call readdir to get the next entry in the opened directory. Once nothing has to be read, closedir is called. The problem here is that dar cannot start reading a directory do some treatment and start reading another directory. In brief, the opendir/readdir/closedir system call are not re-entrant. This is in particular critical for dar as it does a depth lookup in the directory tree. In other words, from the root if we have two directories A and B, dar reads A’s contents, the contents of its subdirectories, then once finished, it read the next entry of the root directory (which is B), then read the contents of B and then of each of its subdirectories, then once finished for B, it must go back to the root again, and read the next entry. In the meanwhile dar had to open many directories to get their contents. For thi
Related Questions
- When I try to install anything, I get dpkg (subprocess): failed to exec dpkg-split to see if its part of a multiparter: No such file or directory. How do I fix this?
- What does the error "Warning: main(../whitedragon/cms.php): failed to open stream: No such file or directory in..." mean?
- Why dar tells me that he failed to open a directory, while I have excluded this directory?