From owner-freebsd-fs Thu Aug 13 22:27:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA22998 for freebsd-fs-outgoing; Thu, 13 Aug 1998 22:27:38 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA22974 for ; Thu, 13 Aug 1998 22:27:34 -0700 (PDT) (envelope-from michaelh@cet.co.jp) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.8/CET-v2.2) with SMTP id FAA10021; Fri, 14 Aug 1998 05:24:47 GMT Date: Fri, 14 Aug 1998 14:24:47 +0900 (JST) From: Michael Hancock To: "Alton, Matthew" cc: "'FreeBSD-fs@FreeBSD.ORG'" Subject: Re: LFS Hacking In-Reply-To: <31B3F0BF1C40D11192A700805FD48BF901776634@STLABCEXG011> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 13 Aug 1998, Alton, Matthew wrote: > What function call is used in the kernel to syncronously write data to a disk? > I mean really actually write it and change the polarity in the little > magnetic domains and everything such that I may assume that the > data is ON THE DISK when the call returns success. Have a look at bwrite() and compare it to bawrite() and bdwrite(). > How should I impliment "callback" in the kernel buffer cache flushing > mechanism so that the vm dosn't interfere with my write scheduling? I > need to know how to properly register a filesystem with the kernel at > boot time and how to register vm operations including > union-of-set-preserving NOOPs and how to "intercept" vm-issued fsyncs > and whatever else. Sorry I've only spent time on VOP glue, but concerning registering an fs poke around in kern. A grep for mount.h should narrow it down. Regards, Mike Hancock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message