lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Rights for hardlinks


On Tue, 23 Mar 1999, Arvind Sankar wrote:

> On Tue, Mar 23, 1999 at 11:58:14AM -0500, Alexander Viro wrote:
> > > get around the linking would be to first create a 700 directory in /tmp and
> > > export TMPDIR=/tmp/foo. This requires trickery in your .profile to find
> > > a suitable foo.
> >
> > Or you are not keeping /tmp on the same filesystem as root (*good* idea,
> > especially if you have a NetRape installed on the system and lusers
> > knowing about said FPOS) and regulary remove all old files from /tmp (also
> > needed, normally done from crontab via reasonably frequent check for the
> > amount of space remaining there).
>
> Yes, /tmp _should_ be a separate partition on any decent multi-user system.
> Point taken...
>
> As a general feature, however, is it reasonable to add a S_ITMP flag to
> creat(2) to create temp files that do not have associated directory entries?

<shudder> Good luck implementing it over NFS. OTOH... Something
similar is possible, but I don't think that create() is the right
interface for that. BTW, most of the times you really need not that, but
anonymous mmap...

> i.e. the filesystem just allocates an inode and returns it, with the file
> being deleted on close. We save on having to carefully find a unique filename
> for the tempfile, when we're just going to unlink the thing anyway. Of course
> this doesn't do anything for shell scripts.
>
> -- arvind
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.043 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site