From: Trond Myklebust Subject: Re: [RFC][PATCH] VFS: update documentation (take #2) Date: Wed, 24 Aug 2005 11:46:30 -0700 Message-ID: <1124909191.8286.2.camel@lade.trondhjem.org> References: <1124908580.18800.2.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: To: Pekka Enberg In-Reply-To: <1124908580.18800.2.camel@localhost> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org on den 24.08.2005 Klokka 21:36 (+0300) skreiv Pekka Enberg: > > struct file_system_type { > const char *name; > int fs_flags; > - struct super_block *(*read_super) (struct super_block *, void *, int); > - struct file_system_type * next; > + struct super_block *(*get_sb) (struct file_system_type *, int, > + const char *, void *); > + void (*kill_sb) (struct super_block *); > + struct module *owner; > + struct file_system_type * next; > + struct list_head fs_supers; > }; > > name: the name of the filesystem type, such as "ext2", "iso9660", > @@ -141,51 +141,96 @@ struct file_system_type { > > fs_flags: various flags (i.e. FS_REQUIRES_DEV, FS_NO_DCACHE, etc.) > > - read_super: the method to call when a new instance of this > + get_sb: the method to call when a new instance of this > filesystem should be mounted > > - next: for internal VFS use: you should initialise this to NULL > + kill_sb: the method to call when an instance of this filesystem > + should be unmounted > + > + owner: for internal VFS use: you should initialize this to NULL owner should be set to THIS_MODULE in most cases... Cheers, Trond