comparison tests/open.c @ 7:8339ab15527d

Add running/stopped containers global statistics and refactor some things
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 17:46:40 +0100
parents 6ce4443e7545
children
comparison
equal deleted inserted replaced
6:e2b88f50e136 7:8339ab15527d
10 { 10 {
11 lxcst_handle *hdl; 11 lxcst_handle *hdl;
12 12
13 hdl = lxcst_open(); 13 hdl = lxcst_open();
14 14
15 if (hdl) { 15 if (hdl && hdl->cgroup_dir && hdl->lxc_dir) {
16 printf("%s: mnt_dir=%s.\n", *argv, hdl->cgroup_dir); 16 printf("%s: cgroup_dir=%s.\n", *argv, hdl->cgroup_dir);
17 printf("%s: lxc_dir=%s.\n", *argv, hdl->lxc_dir);
17 return (EXIT_SUCCESS); 18 return (EXIT_SUCCESS);
18 } 19 }
19 20
20 err(EXIT_FAILURE, "lxcst_open failed"); 21 err(EXIT_FAILURE, "lxcst_open failed");
21 22