From: Nir Tzachar Subject: Re: unlink (inode_operations) Date: Sun, 6 Jul 2003 09:07:25 +0300 (IDT) Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: References: <000401c3437e$5d3dd720$01000001@southernstar> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from indigo.cs.bgu.ac.il ([132.72.42.23]:55194 "EHLO indigo.cs.bgu.ac.il") by vger.kernel.org with ESMTP id S265988AbTGFFw3 (ORCPT ); Sun, 6 Jul 2003 01:52:29 -0400 To: James Buchanan In-Reply-To: <000401c3437e$5d3dd720$01000001@southernstar> List-Id: linux-fsdevel.vger.kernel.org Hello james. > What does the nullfs do?Do you know in general how filesystems work nullfs ( originally implemented for linux by "Progeny Linux Systems" ) works like a stackable file system, ie. it makes use of a _lower_ file system to do its house_keeping chores... like on_disk data etc. For each file/dentry/inode on the _upper_ file system, it links in the _lower_ file/dentry/inode respectively. For example, if u open a file on the upper f/s, a file will also be opened on the lower f/s, and linked in to the upper one via the file->private_data pointer . Now, all vfs operations on the upper f/s, gets propagated to the lower f/s. > on Linux - when the data comes off the disk (or from wherever) does it > go through the filesystem code where it is mapped into kernel pages, > so the kernel can then give the data to system calls? I mainly coded stackable like file systems till now, so i may be wrong: ( in a nutshell.. )the file system is responsible to __locate__ the data, not retrieve it. Another layer is responsible for the actual fetching of data from the block device. > Where is the point in filesystem code where data travels through the > fs code from the disk to the kernel, and vice versa? Mainly in the f_op->read/write . These are the callbacks for the vfs to perform reading/writing fro the filesystem. hope i was helpful..... ======================================================================== nir.