AdvFS restriction ? Can't create more than 32768 directories !

From: Claude Scarpelli <claude_at_genoscope.cns.fr>
Date: Thu, 05 Apr 2001 12:22:22 +0200

Dear Managers,

The problem : when a directory contains 32678 directories, there is no
ways to create any additional directory or file ! I'm running 4.0F,
file system type is AdvFS. I think this is an AdvFS restriction, since
I'm not aware of such a restriction in UNIX (POSIX). I've been unable
to find a reference to this restriction in the Releases Notes. Did I
miss something ?

vesuvio3$ mkdir /tmp/claude
vesuvio3$ cd /tmp/claude
vesuvio3$ i=1
vesuvio3$ while mkdir d-$i
> do
> i=`expr $i + 1`
> done
mkdir: cannot access directory .
.: No such file or directory
vesuvio3$ ls -1 | wc -l
     32766
vesuvio3$

32766 directories, plus . and .. = 32768 = 2**15 !

vesuvio3$ df -k .
Filesystem 1024-blocks Used Available Capacity Mounted
on
tmp_domain#tmp 1680288 273449 1348456 17% /tmp
vesuvio3$


Look at the strange errno value returned by open(2) :
vesuvio3$ trace touch foo
[.....]
open ("foo", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 (No such file or directory)

open(2) returns -1, and errno is set to ENOENT.


I'm pretty sure I have directories that contains more than 32768
files.

Can someone comment on that ?

-- 
------------------------------------------------------------------------------
Claude Scarpelli                            | Defenestrate: to exit a window
Centre National de Séquençage - GENOSCOPE   | onscreen. (Time International
2, rue Gaston Crémieux, F-91000 EVRY FRANCE | Vol 146, No. 20, Nov 13, 1995)
Received on Thu Apr 05 2001 - 10:23:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT