Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755338AbZJUVSP (ORCPT ); Wed, 21 Oct 2009 17:18:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754480AbZJUVSO (ORCPT ); Wed, 21 Oct 2009 17:18:14 -0400 Received: from sca-es-mail-2.Sun.COM ([192.18.43.133]:44367 "EHLO sca-es-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015AbZJUVSN (ORCPT ); Wed, 21 Oct 2009 17:18:13 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; delsp=yes; format=flowed Date: Wed, 21 Oct 2009 15:17:38 -0600 From: Andreas Dilger Subject: Re: [PATCH 15/41] whiteout: ext2 whiteout support In-reply-to: <1256152779-10054-16-git-send-email-vaurora@redhat.com> To: Valerie Aurora Cc: Jan Blunck , Alexander Viro , Christoph Hellwig , Andy Whitcroft , Scott James Remnant , Sandu Popa Marius , Jan Rekorajski , "J. R. Okajima" , Arnd Bergmann , Vladimir Dronnikov , Felix Fietkau , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Tso , linux-ext4@vger.kernel.org Message-id: <1983FB3A-C88F-4EF4-A2E1-8B18DF97F0AB@sun.com> X-Mailer: Apple Mail (2.936) References: <1256152779-10054-1-git-send-email-vaurora@redhat.com> <1256152779-10054-2-git-send-email-vaurora@redhat.com> <1256152779-10054-3-git-send-email-vaurora@redhat.com> <1256152779-10054-4-git-send-email-vaurora@redhat.com> <1256152779-10054-5-git-send-email-vaurora@redhat.com> <1256152779-10054-6-git-send-email-vaurora@redhat.com> <1256152779-10054-7-git-send-email-vaurora@redhat.com> <1256152779-10054-8-git-send-email-vaurora@redhat.com> <1256152779-10054-9-git-send-email-vaurora@redhat.com> <1256152779-10054-10-git-send-email-vaurora@redhat.com> <1256152779-10054-11-git-send-email-vaurora@redhat.com> <1256152779-10054-12-git-send-email-vaurora@redhat.com> <1256152779-10054-13-git-send-email-vaurora@redhat.com> <1256152779-10054-14-git-send-email-vaurora@redhat.com> <1256152779-10054-15-git-send-email-vaurora@redhat.com> <1256152779-10054-16-git-send-email-vaurora@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 44 On 2009-10-21, at 13:19, Valerie Aurora wrote: > This patch adds whiteout support to EXT2. A whiteout is an empty > directory > entry (inode == 0) with the file type set to EXT2_FT_WHT. Therefore it > allocates space in directories. Due to being implemented as a > filetype it is > necessary to have the EXT2_FEATURE_INCOMPAT_FILETYPE flag set. > > diff --git a/include/linux/ext2_fs.h b/include/linux/ext2_fs.h > index 121720d..bd10826 100644 > --- a/include/linux/ext2_fs.h > +++ b/include/linux/ext2_fs.h > @@ -189,6 +189,7 @@ struct ext2_group_desc > +#define EXT2_OPAQUE_FL 0x00040000 Please check in the upstream e2fsprogs ext2_fs.h before defining new flag values for ext2/3/4. In this case, 0x40000 conflicts with EXT4_HUGE_FILE_FL, which is of course bad. > @@ -503,10 +504,12 @@ struct ext2_super_block { > #define EXT2_FEATURE_INCOMPAT_META_BG 0x0010 > +#define EXT2_FEATURE_INCOMPAT_WHITEOUT 0x0020 This one doesn't conflict, probably due to luck, because 0x0040-0x0200 are already in use for other features. I'm not sure if 0x0020 was reserved for some other use, or just skipped to avoid potential conflicts. Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. -- 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/