ADDITIONAL CGROUPS BLKIO STATS

Currently github.com/docker/libcontainer/cgroups/fs.GetStats does not provide the following metrics:
blkio.io_wait_time, blkio.io_service_time, blkio.io_merged, and blkio.time.

This commits add these four metrics. The descriptions of the metrics are here: https://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt.

It also modifies blkio_test and stats_util_test to ensure that the metrics are parsed.

Docker-DCO-1.1-Signed-off-by: Abin Shahab <ashahab@altiscale.com> (github: ashahab-altiscale)
devices: filter /dev/console out of the node list

Fixed getDeviceNodes() so it won't add /dev/console to the device node
list.

This fixes an issue where containers wouldn't start if
/dev/console is a pts (which is the case when running docker inside
docker), because devpts inodes are special and cannot be created with
mknod: attempting to open the result of doing so will return EIO.

Since later libcontainer would attempt to open the file to mount --bind
over it and fail because of the EIO error, the container wouldn't start
if the /dev/console was a pts, which is the case inside a docker
that was started from a pts.

getDeviceNodes() already filters pts so this change is consistent
with the current behavior.

Signed-off-by: Alejandro Ojeda <alex@x3y.org>
modified devices: filter /dev/console out of...

Applied crosbymichael's suggested changes

Signed-off-by: Alejandro Ojeda <alex@x3y.org>
Merge pull request #235 from alexoj/master

devices: filter /dev/console out of the node list
ErrNotSupportedPlatform is undefined define it

Signed-off-by: Harshavardhana <fharshav@redhat.com>
Merge pull request #236 from harshavardhana/undefined

ErrNotSupportedPlatform is undefined define it
Fix link re contributing in README following renaming in 9b10e7f
Merge pull request #238 from lucafavatella/contributing

Fix link re contributing in README
Merge pull request #243 from ashahab-altiscale/242-additional-blkio-stats

ADDITIONAL CGROUPS BLKIO STATS
Add ContainerInfo instead of using a readonly state

This modifies Load in the factory to return a ContainerInfo interface
that is the read only view of the container when it is loaded.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Update container interface with process operations

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Implement linux factory and container with readonly interface

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Add stacktrace package for collection of stacktraces

This helps aid our effort of returning useful errors.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Add testing for linux factory Load

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Add cgroup manage for mocking of package resources

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Remove ContainerInfo interface

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>