Date: Mon, 26 Apr 1999 12:15:21 -0700 (PDT) From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: jbryant@unix.tfs.net Cc: freebsd-current@freebsd.org Subject: Re: file disappeared? Message-ID: <199904261915.MAA82637@troutmask.apl.washington.edu> In-Reply-To: <199904261858.NAA21791@argus.tfs.net> from Jim Bryant at "Apr 26, 1999 01:58:44 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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". 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. > I wasn't clear in my response. Running "fsck -p" on a mounted file system can supposedly lead to Bad Things. It seems that fsck should determine if the file systm is mounted before it can to some damage. -- Steve 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?199904261915.MAA82637>