Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 1999 14:25:29 -0500 (CDT)
From:      Jim Bryant <jbryant@argus.tfs.net>
To:        bright@rush.net (Alfred Perlstein)
Cc:        freebsd-current@freebsd.org
Subject:   Re: file disappeared?
Message-ID:  <199904261925.OAA26384@argus.tfs.net>
In-Reply-To: <Pine.BSF.3.96.990426142328.2095x-100000@cygnus.rush.net> from Alfred Perlstein at "Apr 26, 99 02:24:40 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
In reply:
> On Mon, 26 Apr 1999, Jim Bryant wrote:
> 
> > In reply:
> > > Can VFS_STATFS return a value that indicates whether a file system
> > > is mounted?  If so, it would seem logical to have fsck check the status.
> > > 
> > > status = VFS_STATFS(mp, sbp, p);
> > > if (status & MOUNTED)
> > >    perror("file system mounted");
> > 
> > I am saying this without having looked at the code first, but I
> > believe that it is already impossible to umount a filesystem with any
> > OPEN files on it: "filesystem in use".  
> 
> umount -f
> 
> will force a dismount and make all open references go to deadfs afaik.
> 
> -Alfred

I stand corrected.

I must of misinterpreted the -f to mean -f[orget-this-option!], in a
moment of self-preservation.  As I recall -f is a last resort.

jim
-- 
All opinions expressed are mine, if you    |  "I will not be pushed, stamped,
think otherwise, then go jump into turbid  |  briefed, debriefed, indexed, or
radioactive waters and yell WAHOO !!!      |  numbered!" - #1, "The Prisoner"
------------------------------------------------------------------------------
Inet: jbryant@tfs.net    AX.25: kc5vdj@wv0t.#neks.ks.usa.noam     grid: EM28pw
voice: KC5VDJ - 6 & 2 Meters AM/FM/SSB, 70cm FM.   http://www.tfs.net/~jbryant
------------------------------------------------------------------------------
HF/6M/2M: IC-706-MkII, 2M: HTX-212, 2M: HTX-202, 70cm: HTX-404, Packet: KPC-3+


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904261925.OAA26384>