NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: procfs difference between NetBSD and Linux
kre%munnari.OZ.AU@localhost (Robert Elz) writes:
> Date: Thu, 3 Jun 2021 09:12:52 -0000 (UTC)
> From: mlelstv%serpens.de@localhost (Michael van Elst)
> Message-ID: <s9a6ek$ami$1%serpens.de@localhost>
> | 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.
Home |
Main Index |
Thread Index |
Old Index