[CPMD-list] Upon compilation of cpmd2cube...
kohsj at ihpc.a-star.edu.sg
kohsj at ihpc.a-star.edu.sg
Thu May 27 10:16:50 CEST 2004
Dear Dr. Axel,
Is there any way that one can remove the .nfsXXXXX files, and subsequently, the "cpmd2cube-v0.1.1" folder?
Thanks again!
AK> My IT man suggested that it could probably be:
AK>
AK>
AK> "Since you are the one who create the folder, you shall have the
right to
AK> remove anything in the folder. However, you claim that you
delete the
AK> file and it come back again. This is mostly likely due to your
program.AK> You may have write a program and this program may need
to write
AK> something in this folder everytime it is running and therefore
the file
AK> come back after you delete it. I just make a guess and I do not
have any
AK> evidence to support my point. Hope that clear your doubt."
well, this is close to the explanation. the reason for the .nfsXXXXX
filesis 'feature' of NFS in order to emulate posix style file access
semantics.to explain: if you delete a file on a posix/unix machine,
the file is
initially only removed from the directory listing but not deleted if
thereis still a process, that has an open file descriptor pointing
to that
file. only if the last process accessing the file has ended, that
file is
really deleted. this is btw a very convenient way of creating
'invisible'scratch files, that get automatically deleted, when the
process terminates
or dies (you open(2)/fopen(3) a file with a unique name for writing
and
immediately unlink(2) it). back to the .nfsXXXX file: the NFS
filesystem,however is basically 'stateless', i.e. the connection to
the NFS server
can be interrupted any time and later reconnected (in some cases it
can
even survive an intermediate reboot with replacing the hardware and
resizing the filesystem). so to implement the 'file-stays-even-if-
deleted'semantics, the nfs server daemon acts as a proxy for the
processes
accessing the file, but to make this work even in case of a reboot, the
.nfsXXXX files are created. the XXXXX is an hash, that allows the
serverto detect the process needing to access the 'file with no name'.
most frequently this happens if you open a file in an editor, that
keeps an open file descriptor to the file it opens (or to the
associated backup/undo file).
axel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kohsj.vcf
Type: text/x-vcard
Size: 255 bytes
Desc: Card for <kohsj at ihpc.a-star.edu.sg>
Url : http://cpmd.org/pipermail/cpmd-list/attachments/20040527/81540550/attachment.bin
More information about the CPMD-list
mailing list