A suggestion: .... == ../../..
Mark Buda
hermit at shockeye.UUCP
Mon Apr 25 08:54:46 AEST 1988
In article <911 at dutinfd.UUCP> oosten at dutinfd.UUCP (Gertjan van Oosten) writes:
>
> Why do some of you want to add extra inodes for ... .... etc.?
> This could give you some trouble, like "File System Full"....
>
> What I mean is: where do you stop? Do you just want an entry for ...
> or also one for .... (okay, one more for the road: .....)???
>
> The solution to all this is:
> do NOT create new inodes for ... etc.
I thought this was comp.unix.wizards! :-) You wouldn't be creating new
inodes for ... .... etc. You would be adding directory entries. Unless
you've got REALLY deep nesting levels, you wouldn't be taking up any extra
space most of the time, anyway. (BSD disk block fragmenting intentionally
ignored here.) Say you've got a SysV system. 1K disk blocks. 14-character
filenames limit you to .............., incidentally. So you won't be adding
more than 12 entries anyway. Only 3/8 of your directories will end up with
an extra block tacked on, assuming the number of files in a directory is a
random number. Less than that, even.
It's a stupid idea, anyway. And this is a stupid comment. I just wanted to
point out that it wouldn't involve any extra inodes.
Hmmm... except that the root directory would be pretty huge. Especially on
a BSD system with 256-character filenames or whatever it is. Gee, it would
be something like 64K. .,..,...,....,.....,......,.......,........,.......
you get the idea.
--
Mark Buda / Smart UUCP: hermit at chessene.uucp / Phone(work):(717)299-5189
Dumb UUCP: ...{rutgers,ihnp4,cbosgd}!bpa!vu-vlsi!devon!chessene!hermit
Entropy will get you in the end.
"A little suction does wonders." - Gary Collins
More information about the Comp.unix.wizards
mailing list