*BSD News Article 9203


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5369 ; Wed, 23 Dec 92 15:17:11 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uunet!psinntp!ficc!peter
From: peter@ferranti.com (peter da silva)
Subject: Re: Almost Free Symbolic Links (source code)
Message-ID: <id.DQ0W.J7I@ferranti.com>
Organization: Xenix Support, FICC
References: <39777@hoptoad.uucp> <id.J2UV.H5K@ferranti.com> <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca>
Date: Tue, 22 Dec 1992 00:44:37 GMT
Lines: 18

In article <DERAADT.92Dec17125257@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
>    How about generalizing this to put ALL files < 60 bytes in the inode, not
>    just symlinks?

> Because it screws up the alignment all the way through the file.

How do you get that? Files < 60 bytes would start in the inode (or files
less than 39 or 52 or however many bytes are available in the block pointers),
and longer files would start in the first direct block. When you wrote byte 61
the OS would allocate the first direct block and copy it in.

It could even optimize by only moving the file contents to the inode on file
close.
-- 
Peter da Silva                                            `-_-'
Ferranti International Controls Corporation                'U` 
Sugar Land, TX  77487-5012 USA
+1 713 274 5180                            "Zure otsoa besarkatu al duzu gaur?"