Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 22:09:26 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Kris Kennaway <kris@FreeBSD.ORG>
Cc:        Mike Heffner <mheffner@vt.edu>, audit@FreeBSD.ORG
Subject:   Re: sort(1) tempfile patch
Message-ID:  <p04330115b627dae6a529@[128.113.24.47]>
In-Reply-To: <20001102182202.A26341@citusc17.usc.edu>
References:  <XFMail.20001102145935.mheffner@vt.edu> <p04330112b6279baac90a@[128.113.24.47]> <20001102182202.A26341@citusc17.usc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
At 6:22 PM -0800 11/2/00, Kris Kennaway wrote:
>  Why's that?

Your method has one fewer inode in /tmp, but many more
files in /tmp directory.  (directly in /tmp, as opposed
to "some subdirectory of /tmp").

If sort is going to create multiple temp files, then your
strategy puts all of those files in /tmp.  I'd rather have
one file in /tmp, and then lots of sort-related files in
/tmp/sort.random for each user doing a sort.

On a multi-user system (one which actually has multiple
active users), one person doing a sort can cause a lot
of "pollution" of /tmp, along with constant locking as
those temporary files are created and destroyed.

Also, I like the idea of having to be paranoid only
for the creation of one directory, instead of having
to be paranoid for every file created.
-- 

---
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p04330115b627dae6a529>