From: "Darrick J. Wong" Subject: Re: [PATCH] ext4: make huge file flag user visible. Date: Tue, 23 Jan 2018 21:09:30 -0800 Message-ID: <20180124050930.GF5594@magnolia> References: <1516767348-30444-1-git-send-email-tgnottingham@gmail.com> <20180124050333.GC5594@magnolia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca To: Tyson Nottingham Return-path: Received: from aserp2130.oracle.com ([141.146.126.79]:36572 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbeAXFJh (ORCPT ); Wed, 24 Jan 2018 00:09:37 -0500 Content-Disposition: inline In-Reply-To: <20180124050333.GC5594@magnolia> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Tue, Jan 23, 2018 at 09:03:33PM -0800, Darrick J. Wong wrote: > On Tue, Jan 23, 2018 at 08:15:48PM -0800, Tyson Nottingham wrote: > > Make huge file flag visible to clients of FS_IOC_GETFLAGS ioctl, e.g. > > the userspace tool lsattr, which expects the flag to be visible. > > Pardon my asking, but why is this necessary? Are there > userspace-visible effects of this flag? Ahh, the chattr man page says that 'h' means HUGE_FILE_FL, but I guess ext4 won't report it to userspace...? XFS won't either, maybe we just kill the 'h' option? :) --D > > --D > > > > > Signed-off-by: Tyson Nottingham > > --- > > fs/ext4/ext4.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h > > index 3241475..dbd6318 100644 > > --- a/fs/ext4/ext4.h > > +++ b/fs/ext4/ext4.h > > @@ -400,7 +400,7 @@ struct flex_groups { > > #define EXT4_PROJINHERIT_FL 0x20000000 /* Create with parents projid */ > > #define EXT4_RESERVED_FL 0x80000000 /* reserved for ext4 lib */ > > > > -#define EXT4_FL_USER_VISIBLE 0x304BDFFF /* User visible flags */ > > +#define EXT4_FL_USER_VISIBLE 0x304FDFFF /* User visible flags */ > > #define EXT4_FL_USER_MODIFIABLE 0x204BC0FF /* User modifiable flags */ > > > > /* Flags we can manipulate with through EXT4_IOC_FSSETXATTR */ > > -- > > 2.7.4 > >