k...@munnari.oz.au (Robert Elz) writes: > Date: Thu, 3 Jun 2021 09:12:52 -0000 (UTC) > From: mlel...@serpens.de (Michael van Elst) > Message-ID: <s9a6ek$ami$1...@serpens.de>
> | namei() return EEXIST when it works on a CREATE operation and > | crosses a mountpoint. >Could we perhaps simply have procfs remove O_CREAT from the flags >passed by the user? It is never going to work to create a file >inside a procfs mount, is it? procfs will anser EOPNOTSUPP on VOP_CREATE. But it never comes that far. On the other hand, the logic in namei() might not be correct. It looks like a check to prevent CREATE operations on a mountpoint, but that's neither necessary nor compatible when the object already exists.