Lo, on Thursday, October 14, Wayne Brehob did write:

> On Thu, 14 Oct 2004, Jonas Steverud wrote:
> 
> > Wayne Brehob <[EMAIL PROTECTED]> writes:
> >
> > > On Mon, 11 Oct 2004, Christian SIMON wrote:
> > [...]
> > > There is a system 'unlink' command, and I believe this can be used to
> > > remove directories as well as files.
> >
> > There is just a slight problem to the reasoning: If unlink has been
> > used (I don't have the documentation for it so I can't double check)
> > but on Un*x systems in general, a file is not removed as long as any
> > program uses the file or directory. The idea behind this is that a
> > program can create a file in /tmp and then remove it. That way the
> > temporary file will be removed from the system as soon as the program
> > quits - even if it crashes. No more left-behind temporary files.
> >
> > If you logged in I assume your home directory is marked as used by
> > your master process and will not be removed as long as that one is
> > still living. As soon as you reboot or log off, it dies.
> >
> That's a good point.  The inode for your home directory must still
> exist somewhere if a process is holding it.  Did you say you're still
> logged in?  I don't know how you'd ever find it on the disk, [...]

Try lsof(8).  (An extremely handy utility, especially when you can't
unmount a disk because it's still in use -- this lets you find out who's
using it.)

> [...] as the directory entry for it in /Users is apparently gone, but
> perhaps there is a way to find the inode number in the process table,
> and get something to re-link to it.

I don't know how to do that, though.

Richard


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to