From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harsha Srinath Subject: changes in fs.h and fsfilter.h Date: Thu, 05 May 2005 17:53:59 -0700 Message-ID: <427AC027.2070605@usc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT Return-path: Received: from msg-mx3.usc.edu ([128.125.137.8]:23245 "EHLO msg-mx3.usc.edu") by vger.kernel.org with ESMTP id S262080AbVEFAyA (ORCPT ); Thu, 5 May 2005 20:54:00 -0400 Received: from [127.0.0.1] ([24.130.23.174]) by msg-mx3.usc.edu (Sun Java System Messaging Server 6.1 HotFix 0.08 (built Dec 8 2004)) with ESMTPA id <0IG100LKJMHZEM60@msg-mx3.usc.edu> for linux-fsdevel@vger.kernel.org; Thu, 05 May 2005 17:53:59 -0700 (PDT) To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I am trying to port a ext3 cow utility from 2.4 to 2.6. I have a couple of questions that I figured is too ext3 specific for the kernelnewbies list and am sincerely hoping I can find some help here. 1. In the the 2.4 ../include/linux/fs.h file, there is a union in the VFS inode struct like :- struct inode { struct list_head i_hash; struct list_head i_list; struct list_head i_dentry; ........ union { struct minix_inode_info minix_i; struct ext2_inode_info ext2_i; struct ext3_inode_info ext3_i; ....... }u; Can anyone tell me where this union info is present in 2.6.10 ? I grep'ed in the ..../include/linux/ directory but could not find the union in any VFS files. (I want the VFS to know my changed ext3 inode info that I call "struct extcow3_inode_info extcow3_i".) I guess the same answer would hold good for :- struct super_block { struct list_head s_list; /* Keep this first */ kdev_t s_dev; unsigned long s_blocksize; unsigned char s_blocksize_bits; ......... union { struct minix_sb_info minix_sb; struct ext2_sb_info ext2_sb; struct ext3_sb_info ext3_sb; ............... }u; 2. I am unable to find the following #defines :- #define FILTER_FS_TYPES 6 #define FILTER_FS_EXT2 0 #define FILTER_FS_EXT3 1 .................... that were earlier in ../include/linux/fsfilter.h in the 2.4 kernel. Can anyone please tell me where this info is now? Again I tried grep'ing into the files but could not find any file with that information. I am a newbie and am not very sure what this info is too. Can anyone shed some light please? Thanks! Harsha Srinath