Can directory files have holes in them ?

Tim Chown tjc at ecs.soton.ac.uk
Fri Oct 6 00:40:40 AEST 1989


In article <1212 at accuvax.nwu.edu>, naim at accuvax.nwu.edu (Naim Abdullah (CSRL)) writes:
> In 4.3bsd, is it possible for a directory file to have holes in it ?

Sure is.  Here's an example with the nrsdbm files that are commonly
used in the UK as an online database of mail/ftp sites:

tjc40% ls -l
total 4164
-rw-r--r--  1 root       549740 Oct  5 14:41 DBM1
-rw-r--r--  1 root       544304 Oct  5 14:26 DBM1~
-rw-r--r--  1 root       766931 Oct  5 14:22 DERFIL2
-rw-r--r--  1 root       761268 Oct  5 14:22 DERFIL2~
-rw-r--r--  1 root          568 Sep  5 16:51 UAIEF
-rw-r--r--  1 root          196 Jun  6 16:37 UAIEF~
-rwxr-xr-x  1 root        49152 Jan 25  1989 dbencode
-rwxr-xr-x  1 root        49152 Jan 25  1989 dbpatch
drwxr-xr-x  3 root          512 Jan 25  1989 maint
drwxr-xr-x  2 root          512 Jan 25  1989 newcomms
-rw-r--r--  1 root         8192 Oct  5 14:48 nrsdbm.dir
-rw-r--r--  1 root      3552256 Oct  5 14:48 nrsdbm.pag
tjc41% du
188     ./maint/patch
189     ./maint
1674    ./newcomms
6026    .

More holes than filling, it seems.  (This is on a Sun 3, 4.3BSD)

Tim.



More information about the Comp.unix.wizards mailing list