[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1NdJKL-0003K8-S1@pomaz-ex.szeredi.hu>
Date: Fri, 05 Feb 2010 09:14:09 +0100
From: Miklos Szeredi <miklos@...redi.hu>
To: 7eggert@....de
CC: miklos@...redi.hu, viro@...IV.linux.org.uk,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
eugene@...hat.com, mtk.manpages@...il.com
Subject: Re: [RFC PATCH] vfs: add MNT_NOFOLLOW flag to umount(2)
On Thu, 04 Feb 2010, Bodo Eggert wrote:
> Miklos Szeredi <miklos@...redi.hu> 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.
It's difficult though, because the app would have to make sure the
detection itself would reliably fail, and with a different error.
Simply checking the kernel version might be easier.
Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists