tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* AdvFS restriction ? Can't create more than 32768 directories !
@ 2001-04-05 10:22 Claude Scarpelli
  0 siblings, 0 replies; only message in thread
From: Claude Scarpelli @ 2001-04-05 10:22 UTC (permalink / raw)
  To: tru64-unix-managers

[-- 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-05 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-05 10:22 AdvFS restriction ? Can't create more than 32768 directories ! Claude Scarpelli

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