qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] qga/commands-posix: replace code duplicating commands with a helper
@ 2024-02-26 16:56 Andrey Drobyshev
  2024-02-26 16:56 ` [PATCH 1/7] qga/commands-posix: return fsinfo values directly as reported by statvfs Andrey Drobyshev
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Andrey Drobyshev @ 2024-02-26 16:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: michael.roth, kkostiuk, marcandre.lureau, andrey.drobyshev, den

This series simply replaces repeating fork()/exec() pattern with a
separate helper to avoid code duplication.  It's easier to setup and use
than g_spawn_async_with_pipes() (which we'd need since some commands require
input).  While here, also make qmp_guest_get_fsinfo return more
straightforward values.

Andrey Drobyshev (7):
  qga/commands-posix: return fsinfo values directly as reported by
    statvfs
  qga: introduce ga_run_command() helper for guest cmd execution
  qga/commands-posix: qmp_guest_shutdown: use ga_run_command helper
  qga/commands-posix: qmp_guest_set_time: use ga_run_command helper
  qga/commands-posix: execute_fsfreeze_hook: use ga_run_command helper
  qga/commands-posix: use ga_run_command helper when suspending via
    sysfs
  qga/commands-posix: qmp_guest_set_user_password: use ga_run_command
    helper

 qga/commands-posix.c | 402 +++++++++++++++++++------------------------
 qga/qapi-schema.json |  11 +-
 2 files changed, 181 insertions(+), 232 deletions(-)

-- 
2.39.3



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-03-01 16:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26 16:56 [PATCH 0/7] qga/commands-posix: replace code duplicating commands with a helper Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 1/7] qga/commands-posix: return fsinfo values directly as reported by statvfs Andrey Drobyshev
2024-02-26 18:50   ` Konstantin Kostiuk
2024-02-27 12:38     ` Andrey Drobyshev
2024-02-28  7:55       ` Marc-André Lureau
2024-03-01 16:51         ` Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 2/7] qga: introduce ga_run_command() helper for guest cmd execution Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 3/7] qga/commands-posix: qmp_guest_shutdown: use ga_run_command helper Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 4/7] qga/commands-posix: qmp_guest_set_time: " Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 5/7] qga/commands-posix: execute_fsfreeze_hook: " Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 6/7] qga/commands-posix: use ga_run_command helper when suspending via sysfs Andrey Drobyshev
2024-02-26 16:56 ` [PATCH 7/7] qga/commands-posix: qmp_guest_set_user_password: use ga_run_command helper Andrey Drobyshev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).