[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv fails with "Too many open files" when moving _many_ files
From: |
Jim Meyering |
Subject: |
Re: mv fails with "Too many open files" when moving _many_ files |
Date: |
Mon, 18 Oct 2004 13:38:07 +0200 |
Cyril Bouthors <address@hidden> wrote:
...
> Please also note that mv does not fail when "too many open files"
> messages occur, it just keep on warning for each file (~9000 warnings
> in the initial example) and does not move anything.
True. Neither mv nor rm exit immediately when they encounter
that error (which was due to the just-fixed bug).
That is by design. It also happens to be the POSIX-specified
behavior. If you're really concerned about this, you should
reorganize so that you don't have thousands of command line arguments.
> With this fix,
> this message shouldn't happen again but maybe it means that mv does
> not properly check the files and directories it opens.
You should study the code and the patch carefully
before making such baseless statements.