From: Ted Ts'o Subject: Re: [PATCH] ext2: Don't export ext2_mask_flags() to user space Date: Wed, 21 Mar 2012 19:16:51 -0400 Message-ID: <20120321231651.GC32041@thunk.org> References: <1332366608-2695-1-git-send-email-thierry.reding@avionic-design.de> <20120321222357.GB24330@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Thierry Reding , linux-kernel@vger.kernel.org, Al Viro , linux-ext4@vger.kernel.org, stable@vger.kernel.org To: Jan Kara Return-path: Received: from li9-11.members.linode.com ([67.18.176.11]:42347 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754484Ab2CUXRK (ORCPT ); Wed, 21 Mar 2012 19:17:10 -0400 Content-Disposition: inline In-Reply-To: <20120321222357.GB24330@quack.suse.cz> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Wed, Mar 21, 2012 at 11:23:57PM +0100, Jan Kara wrote: > Frankly, anybody seriously wanting to do anything with ext[2-4] > filesystems should use header files as provided by libext2fs. So I wonder > if just unexporting the whole file wouldn't be the best solution going > forward. Ted, do you have opinion? Agreed, it's been almost 8 years since e2fsprogs used the include/linux/ext2_fs.h (the last version that needed it was e2fsprogs 1.35, released February 28, 2004). There shouldn't be *anyone* using any of the ext2/3/4 kernel header files. The only program that might be cheating and using kernel header files is ext3grep, as the author wasn't willing to fix his applications to use libext2fs. (As a result, it doesn't work on ext4 file systems, where as properly coded programs that do use libext2fs often work just fine on ext4, such as e2tools, which hasn't been modified for something like eight years but which works on ext4 just fine.) So yeah, I'd just unexport ext2_fs.h, and probably ext3_fs.h as well. - Ted