Re: [PATCH v3 09/14] vfs: add O_CREAT|O_DIRECTORY to open*(2)
From: Christoph Hellwig
Date: Tue Jul 14 2026 - 01:14:45 EST
On Tue, Jul 14, 2026 at 07:35:28AM +1000, NeilBrown wrote:
> So let's add OPENAT2_NEW_COMBINATION which instructs openat2() to reject
> unrecognised combinations. Old kernels will simply reject that.
> New kernels can start using previously unsupported combinations safely.
Yes. Also the name OPENAT2_NEW_COMBINATION feels a bit clunky :)
> Maybe OPENAT2_NEW_COMBINATION could just reject *everything* at first,
> then incrementally allow new combinations as they are defined.
Yes, absolutely.