tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Claude Scarpelli <claude () genoscope ! cns ! fr>
To: tru64-unix-managers
Subject: AdvFS restriction ? Can't create more than 32768 directories !
Date: Thu, 05 Apr 2001 10:22:22 +0000	[thread overview]
Message-ID: <98646619011639.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]


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)

                 reply	other threads:[~2001-04-05 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox