From: Theodore Ts'o Subject: Re: [RFC PATCH 3/5] fscrypt: use EEXIST when file already uses different policy Date: Tue, 27 Dec 2016 21:29:24 -0500 Message-ID: <20161228022924.2dobpfyxyfce2gby@thunk.org> References: <1480965168-38747-1-git-send-email-ebiggers@google.com> <1480965168-38747-4-git-send-email-ebiggers@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: David Gstir , Richard Weinberger , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, Jaegeuk Kim , linux-ext4@vger.kernel.org To: Eric Biggers Return-path: Content-Disposition: inline In-Reply-To: <1480965168-38747-4-git-send-email-ebiggers@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net List-Id: linux-ext4.vger.kernel.org On Mon, Dec 05, 2016 at 11:12:46AM -0800, Eric Biggers wrote: > As part of an effort to clean up fscrypt-related error codes, make > FS_IOC_SET_ENCRYPTION_POLICY fail with EEXIST when the file already uses > a different encryption policy. This is more descriptive than EINVAL, > which was ambiguous with some of the other error cases. > > I am not aware of any users who might be relying on the previous error > code of EINVAL, which was never documented anywhere. > > This failure case will be exercised by an xfstest. > > Signed-off-by: Eric Biggers Applied to the fscrypt branch, thanks. - Ted ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot