[PATCH v2] liveupdate: add LUO_SESSION_MAGIC magic inode type
Luca Boccassi
luca.boccassi at gmail.com
Fri Apr 17 13:41:06 PDT 2026
On Fri, 17 Apr 2026 at 21:34, Pasha Tatashin <pasha.tatashin at soleen.com> wrote:
>
> On 04-17 10:44, luca.boccassi at gmail.com wrote:
> > From: Luca Boccassi <luca.boccassi at gmail.com>
> >
> > In userspace when managing LUO sessions we want to be able to identify
> > a FD as a LUO session, in order to be able to do the special handling
> > that they require in order to function as intended on kexec.
> >
> > Currently this requires scraping procfs and doing string matching on
> > the prefix of the dname, which is not an ideal interface.
> >
> > Add a singleton inode type with a magic value, so that we can
> > programmatically identify a fd as a LUO session via fstat().
>
> Hi Luca,
>
> The patch looks good to me, but please add a self-test to
> selftests/liveupdate/liveupdate.c to verify that the fstat interface works
> as expected.
Sure thing, added and sent v3
More information about the kexec
mailing list