zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@cambridgesiliconradio.com>
To: zsh-users@sunsite.auc.dk (Zsh users list)
Subject: Re: .nfsXXX files
Date: Wed, 05 Jul 2000 11:55:46 +0100	[thread overview]
Message-ID: <0FX8004JR10YJY@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Wed, 05 Jul 2000 11:30:30 BST." <20000705113030.A31803@thelonious.new.ox.ac.uk>

> What is the point of .nfsXXX files?  My boss just noticed lots of them
> in his NFS-mounted home directory.

Nothing much to do with zsh, except...  If you unlink a file, UNIX and its
relatives will usually leave the file contents on the disk until all files
open to it have been closed --- zsh uses this for temporary workspace,
opening the file and immediately unlinking it before it has ever been used.

However, this isn't a practical proposition under NFS, which tries to
remember as little as possible about the underlying file, to guard against
problems connecting to the server.  So instead, if the file is still being
accessed, it moves the file to a name beginning .nfs.  Since it can't be
sure when it has to be removed, because (I'm at the limits of my knowledge,
but I think this is correct) all the information about file descriptors is
on the client --- all it knows is it has received a request to read from or
write to a certain file --- they just get left around for cron to tidy up.
Usually there's a job that deletes all such files more than a few days old.

Now, although zsh does use unlinked files, it should only use them as
temporary storage in temporary directories.  So unless you have redefined
$TMPPREFIX this is probably not a shell-specific issue; it will happen any
time you use an NFS-mounted directory in this way.

-- 
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


      reply	other threads:[~2000-07-05 10:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-05 10:30 Adam Spiers
2000-07-05 10:55 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0FX8004JR10YJY@la-la.cambridgesiliconradio.com \
    --to=pws@cambridgesiliconradio.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).