From: Bodo Eggert <7eggert@web.de> Subject: Re: [RFC PATCH] vfs: add MNT_NOFOLLOW flag to umount(2) Date: Thu, 04 Feb 2010 19:48:25 +0100 Message-ID: References: Reply-To: 7eggert@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit To: Miklos Szeredi , viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Eugene Teo , Michael Kerrisk Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Miklos Szeredi wrote: > Additionally, return -EINVAL if an unknown flag is encountered. This > makes it possible for the caller to determine if a flag is supported > or not (at least on kernels with this patch). There should be a guaranteed-to-be-invalid flag or flag-combination in order to safely detect this feature.