Moving a file into a large directory: "No space left on device"
I have a large directory with about 7 million small files on an ext3 partition. I'm trying to move one more file into the directory, but I get a "No space left on device" error, even though there is sufficient space (the file is less than 1K):
Filesystem 1K-blocks Used Available Use% Mounted on
1032123136 963056860 37608996 97%
The weird this is that if I rename the file, I can successfully move it (though some filenames don't work -- the length of the filename doesn't seem to make a difference). Perhaps there's some problem related to indexing the directory? Has anyone run into this before?
BTW, there are plenty of i-nodes left for the file system.