Date: Mon, 24 Jun 1996 16:42:59 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: bill@twwells.com (T. William Wells) Cc: freebsd-questions@freebsd.org Subject: Re: int link(const int inode, const char *name2) Message-ID: <199606242343.QAA02712@phaeton.artisoft.com> In-Reply-To: <4qn6te$rmi@twwells.com> from "T. William Wells" at Jun 24, 96 07:04:14 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> : I've accidentally unlinked a file (or rather, had it unlinked for me by gzip > : -- still my mistake) from the directory it was in. The file is, however, > : still open. If I can get the inode (downloading lsof now), is it possible > : to link it to the directory again? > > When you unlink a file, the inode doesn't get modified, except to > update the link count (and inode modification time). If you crash > your machine by hitting reset, the inode will still be on disk but > with a zero reference count. In _theory_ fsck will detect this > and put the file in lost+found. If you *manually* fsck. The default is to *clear* the inode. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606242343.QAA02712>