[CRIU] [PATCH]v2 stats: write stats at work directory
Pavel Emelyanov
xemul at parallels.com
Fri Nov 15 12:06:04 PST 2013
On 11/16/2013 03:29 AM, Ruslan Kuprieiev wrote:
> Stats must be in work dir, as logfiles and pidfiles.
>
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
> stats.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/stats.c b/stats.c
> index baf52af..8af9942 100644
> --- a/stats.c
> +++ b/stats.c
> @@ -134,7 +134,7 @@ void write_stats(int what)
> } else
> return;
>
> - fd = open_image(CR_FD_STATS, O_DUMP, name);
> + fd = open_image_at(AT_FDCWD, CR_FD_STATS, O_DUMP, name);
> if (fd >= 0) {
> pb_write_one(fd, &stats, PB_STATS);
> close(fd);
>
applied
More information about the CRIU
mailing list