Re: [PATCH v20 8/9] migration-test: Export migration-test util funtions

2022-03-16 Thread Hyman Huang
在 2022/3/16 12:09, Peter Xu 写道: On Wed, Mar 16, 2022 at 10:21:38AM +0800, huang...@chinatelecom.cn wrote: +void cleanup(const char *filename) +{ +g_autofree char *path = g_strdup_printf("%s/%s", tmpfs, filename); + +unlink(path); +} If to move most of these tmpfs helpers out anyway,

Re: [PATCH v20 8/9] migration-test: Export migration-test util funtions

2022-03-15 Thread Peter Xu
On Wed, Mar 16, 2022 at 10:21:38AM +0800, huang...@chinatelecom.cn wrote: > +void cleanup(const char *filename) > +{ > +g_autofree char *path = g_strdup_printf("%s/%s", tmpfs, filename); > + > +unlink(path); > +} If to move most of these tmpfs helpers out anyway, shouldn't we also move all

[PATCH v20 8/9] migration-test: Export migration-test util funtions

2022-03-15 Thread huangy81
From: Hyman Huang(黄勇) Dirtylimit qtest can reuse the mechanisms that have been implemented by migration-test to start a vm, so export the relevant util functions. Signed-off-by: Hyman Huang(黄勇) --- tests/qtest/migration-helpers.c | 95 + tests/qtest/migrati