Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261491AbVDDXUC (ORCPT ); Mon, 4 Apr 2005 19:20:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261465AbVDDXSn (ORCPT ); Mon, 4 Apr 2005 19:18:43 -0400 Received: from moraine.clusterfs.com ([66.96.26.190]:2469 "EHLO moraine.clusterfs.com") by vger.kernel.org with ESMTP id S261494AbVDDXSF (ORCPT ); Mon, 4 Apr 2005 19:18:05 -0400 Date: Mon, 4 Apr 2005 17:17:59 -0600 From: Andreas Dilger To: Vineet Joglekar Cc: linux-kernel@vger.kernel.org, linux-c-programming@vger.kernel.org Subject: Re: Adding a field to ext2_dir_entry_2 Message-ID: <20050404231759.GN1753@schnapps.adilger.int> Mail-Followup-To: Vineet Joglekar , linux-kernel@vger.kernel.org, linux-c-programming@vger.kernel.org References: <20050404225442.52A7AB730@xprdmailfe18.nwk.excite.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MzdA25v054BPvyZa" Content-Disposition: inline In-Reply-To: <20050404225442.52A7AB730@xprdmailfe18.nwk.excite.com> User-Agent: Mutt/1.4.1i X-GPG-Key: 1024D/0D35BED6 X-GPG-Fingerprint: 7A37 5D79 BF1B CECA D44F 8A29 A488 39F5 0D35 BED6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1510 Lines: 49 --MzdA25v054BPvyZa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Apr 04, 2005 18:54 -0400, Vineet Joglekar wrote: > I working with linux kernel 2.4.28. I want to add 1 more field to > ext2_dir_entry_2 - the new version of directory entry for ext2fs. >=20 > I did add the __u32 field to the struct ext2_dir_entry_2 defined in > ext2_fs.h I also modified the EXT2_DIR_REC_LEN macro to: >=20 > (((name_len) + 12 + EXT2_DIR_ROUND) & ~EXT2_DIR_ROUND) >=20 > (+12 instead of +8) to incorporate newly added 4 bytes field. >=20 > I made the similar changes to the mke2fs utility also. This means your filesystem will not be mountable by any other version of Linux. What is more important is why you want to do this - there are other mechanisms that may be more appropriate depending on what you are doing. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc. --MzdA25v054BPvyZa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFCUcsmpIg59Q01vtYRAio5AKDGTLyNL3tPbEesv2DyLvX+m2DMvwCfYFc7 Lyj0280/hvTSgOPYMYtRhzA= =7emj -----END PGP SIGNATURE----- --MzdA25v054BPvyZa-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/