Re: [PATCH v2 31/32] libluo: introduce luoctl
From: Jason Gunthorpe
Date: Tue Jul 29 2025 - 12:15:16 EST
On Wed, Jul 23, 2025 at 02:46:44PM +0000, Pasha Tatashin wrote:
> From: Pratyush Yadav <ptyadav@xxxxxxxxx>
>
> luoctl is a utility to interact with the LUO state machine. It currently
> supports viewing and change the current state of LUO. This can be used
> by scripts, tools, or developers to control LUO state during the live
> update process.
>
> Example usage:
>
> $ luoctl state
> normal
> $ luoctl prepare
> $ luoctl state
> prepared
> $ luoctl cancel
> $ luoctl state
> normal
>
> Signed-off-by: Pratyush Yadav <ptyadav@xxxxxxxxx>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>
> ---
> tools/lib/luo/Makefile | 6 +-
> tools/lib/luo/cli/.gitignore | 1 +
> tools/lib/luo/cli/Makefile | 18 ++++
> tools/lib/luo/cli/luoctl.c | 178 +++++++++++++++++++++++++++++++++++
> 4 files changed, 202 insertions(+), 1 deletion(-)
> create mode 100644 tools/lib/luo/cli/.gitignore
> create mode 100644 tools/lib/luo/cli/Makefile
> create mode 100644 tools/lib/luo/cli/luoctl.c
In the calls I thought the plan had changed to put libluo in its own
repository?
There is nothing tightly linked to the kernel here, I think it would
be easier on everyone to not add ordinary libraries to the kernel
tree.
Jason