Files
docker-cli/components/engine/daemon
Vivek Goyal 622c433bcb devmapper: Keep track of used device Ids in a bitmap
Currently devicemapper backend does not keep track of used device Ids in
the pool. It tries a device Id and if that device Id exists in pool, it
tries with a different Id and keeps on doing this in a loop till it succeeds.

This worked fine so far but now we are moving to transaction based
device creation and deletion. We will keep deviceId information in 
transaction which will be rolled back if docker crashed before transaction
was complete.

If we store a deviceId in transaction and later figure out it already
existed in pool and docker crashed, then we will rollback and remove
that existing device Id from pool (which we should not have).

That means, we should know free device Id in pool in advance before
we put that device Id in transaction.

Hence this patch creates a bitmap (one bit each for a deviceId), and
sets the bit if device Id is used otherwise resets it. This patch
is just preparing the ground right now. Actual usage will follow
in later patches.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Upstream-commit: 4d39e056aac2fadffcb8560101f3c31a2b7db3ae
Component: engine
2014-12-03 13:06:43 -05:00
..
2014-08-01 14:24:46 -04:00
2014-08-01 14:17:24 -04:00
2014-11-21 19:15:22 +00:00
2014-08-01 14:24:41 -04:00
2014-12-01 11:44:13 -05:00
2014-10-24 15:11:48 -07:00
2014-12-02 10:47:57 -08:00
2014-10-24 15:11:48 -07:00
2014-08-06 10:08:19 +00:00
2014-11-20 19:23:58 +00:00
2014-08-06 10:08:19 +00:00
2014-11-03 10:51:03 -08:00
2014-10-30 22:24:57 +02:00
2014-11-08 00:14:08 +00:00
2014-08-06 10:08:19 +00:00
2014-05-17 17:56:02 +00:00
2014-08-06 10:08:19 +00:00
2014-11-25 01:02:30 +02:00
2014-11-08 00:14:08 +00:00
2014-09-03 00:01:11 +04:00
2014-09-03 00:01:11 +04:00
2014-09-29 22:40:26 +00:00
2014-12-01 14:54:14 -05:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver