From owner-freebsd-hackers Wed Oct 23 13:57:21 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA10779 for hackers-outgoing; Wed, 23 Oct 1996 13:57:21 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA10765 for ; Wed, 23 Oct 1996 13:57:15 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA10399; Wed, 23 Oct 1996 13:54:21 -0700 From: Terry Lambert Message-Id: <199610232054.NAA10399@phaeton.artisoft.com> Subject: Re: please tell me I'm wrong To: julian@ref.tfs.com (Julian Elischer) Date: Wed, 23 Oct 1996 13:54:21 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: <199610230940.CAA11698@ref.tfs.com> from "Julian Elischer" at Oct 23, 96 02:40:21 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I've been looking at why I can't unmount a filesystem on a device under devfs > seems that the superblock is stored under the mount point. > it is saved using the sync function of the filesystem that held the device.. > so if the filesystem that held the device, > is devfs, it's asked to save the other filesystem private info (superblock) > but it wouldn't know a superblock if one came up and kicked it > in the shins! > > I hope I'm reading this wrong, because that would indicate that > you can only mount a ffs filesystem from a device on a ffs filesystem.. > (and expect it to work) I think you are missing the "struct fileops" reference, which is different for devices than it is for non-devices. I believe the vnode that gets synced on is the vnode of the FS doing the mounting, not the underlying FS. You should look in vfs_vnops.c... Getting rid of the struct fileops nonsense was one of my goals at one time. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.