Re: [PATCH RFC v3 24/90] cells: add the cell object and cell_create()

From: Askar Safin

Date: Thu Nov 26 2026 - 21:09:17 EST


Josef Bacik <josef@xxxxxxxxxxxxxx>:
> + char hostname[__NEW_UTS_LEN + 1];

Okay, so "hostname" is present in cell struct, and I don't like this.

As well as I understand, this field is only used during configuration phase.
When cell actually running, hostname is present in both struct cell and
in actual UTS namespace. This confuses both people and LLMs, and invites
for bugs.

It is possible there are other fields in cell struct with similar properties.

So, I think we should do something similar to what we do in fsopen/fsmount:
separate configuration context and actual cell. At least in kernel.
And possibly even in UAPI. At very least, please, fill "hostname" with zeroes
when cell is actually created.

It is possible that what I said applies to other fields in "Slots." section,
too.

I already said previously that "root" field can be recalculated-as-needed
using topmost_overmount. Also I already said that "exit_status" should
be delivered using usual "waitid" mechanism.

So, it is quite possible that whole cell struct is not needed at all, and
we should replace it with some kind of configuration context, and when
cell actually starts, then that configuration context should be deleted
and replaced by usual struct user_namespace.

--
Askar Safin