Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760050AbcDEUog (ORCPT ); Tue, 5 Apr 2016 16:44:36 -0400 Received: from ipmail05.adl6.internode.on.net ([150.101.137.143]:30003 "EHLO ipmail05.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752757AbcDEUoe (ORCPT ); Tue, 5 Apr 2016 16:44:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AJCwBxIgRXPDGaLHlegzeBUIZroEABBogyg2CFZoQPhgcCAgEBAoFCTQEBAQEBAQcBAQEBQkCEQgEBBDocIxAIAxgJJQ8FDRgDBxoTiBIDEbtWDYUKAQEIAh4ZhT+FE4JBh1QFh2yHE4hRMYwTgWuBXI09h0SHVoRdKjCINwEBAQ Date: Wed, 6 Apr 2016 06:44:30 +1000 From: Dave Chinner To: Eryu Guan Cc: linux-fsdevel@vger.kernel.org, Steven Whitehouse , Bob Peterson , Alexander Viro , "supporter:XFS FILESYSTEM" , "open list:GFS2 FILE SYSTEM" , open list Subject: Re: [PATCH] fs: return EPERM on immutable inode Message-ID: <20160405204430.GG11238@dastard> References: <1459862890-22957-1-git-send-email-guaneryu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459862890-22957-1-git-send-email-guaneryu@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 21 On Tue, Apr 05, 2016 at 09:28:10PM +0800, Eryu Guan wrote: > In most cases, EPERM is returned on immutable inode, and there're only > a few places returning EACCES. And EPERM looks more reasonable to me. > > So converting all EACCES to EPERM on immutable inode. > > Signed-off-by: Eryu Guan > --- > > I noticed this when running LTP on overlayfs, setxattr03 failed due to > unexpected EACCES on immutable inode. This should be in the commit message itself, rather than "EPERM looks more reasonable". Other than that, change seems fine to me. Acked-by: Dave Chinner -- Dave Chinner david@fromorbit.com