From owner-freebsd-current Mon Apr 26 11:59: 0 1999 Delivered-To: freebsd-current@freebsd.org Received: from argus.tfs.net (node35.unassigned245.tfs.net [139.146.245.35]) by hub.freebsd.org (Postfix) with ESMTP id 2679114C25 for ; Mon, 26 Apr 1999 11:58:53 -0700 (PDT) (envelope-from jbryant@argus.tfs.net) Received: (from jbryant@localhost) by argus.tfs.net (8.9.3/8.8.5) id NAA21791; Mon, 26 Apr 1999 13:58:45 -0500 (CDT) From: Jim Bryant Message-Id: <199904261858.NAA21791@argus.tfs.net> Subject: Re: file disappeared? In-Reply-To: <199904261846.LAA82506@troutmask.apl.washington.edu> from Steve Kargl at "Apr 26, 99 11:46:15 am" To: sgk@troutmask.apl.washington.edu (Steve Kargl) Date: Mon, 26 Apr 1999 13:58:44 -0500 (CDT) Cc: freebsd-current@freebsd.org Reply-To: jbryant@unix.tfs.net X-Windows: R00LZ!@# MS-Winbl0wz DR00LZ!@# X-files: The truth is that the X-Files is fiction X-Republican: The best kind!!! X-Operating-System: FreeBSD 4.0-CURRENT #31: Thu Apr 8 10:40:17 CDT 1999 X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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". Assuming that all of the buffers are flushed upon close, the only thing you really should get is a clean flag problem, as would happen in a crash on a filesystem with no open files. It looks more like he crashed to me, but then something could be munged up in the code. is softupdates on? 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