From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH -v3] vfs: make unlink() and rmdir() return ENOENT in preference to EROFS Date: Tue, 7 Jun 2011 01:05:27 +0100 Message-ID: <20110607000527.GP11521@ZenIV.linux.org.uk> References: <4DED5926.80504@msgid.tls.msk.ru> <1307402380-14166-1-git-send-email-tytso@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mjt@tls.msk.ru To: Theodore Ts'o Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:43796 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755830Ab1FGAFa (ORCPT ); Mon, 6 Jun 2011 20:05:30 -0400 Content-Disposition: inline In-Reply-To: <1307402380-14166-1-git-send-email-tytso@mit.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jun 06, 2011 at 07:19:40PM -0400, Theodore Ts'o wrote: > If user space attempts to remove a non-existent file or directory, and > the file system is mounted read-only, return ENOENT instead of EROFS. > Either error code is arguably valid/correct, but ENOENT is a more > specific error message. > > Reported-by: Michael Tokarev > Signed-off-by: "Theodore Ts'o" Applied. In for-next for now, will go into for-linus once Linus picks the last pull request...