<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker.git/graphdriver/devmapper, branch release-0.9</title>
<subtitle>github.com: dotcloud/docker.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/'/>
<entry>
<title>devmapper: Increase timeout in waitClose to 10sec</title>
<updated>2014-03-18T17:15:44+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-03-18T14:52:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=6fe06c6cc86f31aedd43831d0bf284dda7e53e7a'/>
<id>6fe06c6cc86f31aedd43831d0bf284dda7e53e7a</id>
<content type='text'>
As reported in https://github.com/dotcloud/docker/issues/4389 we're
currently seeing timeouts in waitClose on some systems. We already
bumped the timeout in waitRemove() in
https://github.com/dotcloud/docker/issues/4504.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As reported in https://github.com/dotcloud/docker/issues/4389 we're
currently seeing timeouts in waitClose on some systems. We already
bumped the timeout in waitRemove() in
https://github.com/dotcloud/docker/issues/4504.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
<entry>
<title>DeviceMapper: Succeed immediately when removing non-existant devices</title>
<updated>2014-03-18T16:57:31+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-03-06T14:12:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=63596f8c5d5f1053f486c95d38be792b471c3da7'/>
<id>63596f8c5d5f1053f486c95d38be792b471c3da7</id>
<content type='text'>
We've seen situations where removal of "ID-init" failed during
container deletion (EBUSY), after removal of "ID" has succeeded. This
caused the container delete operation to fail, and on the next delete
attempt the removal of "ID" failed immediately with "does not exist".

Ideally we should not fail the ID-init removal, but its also non-ideal
to allow a state where the container is half-removed and we cannot
make progress deleting the container. So, we silently ignore not-exist
errors on device removal.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We've seen situations where removal of "ID-init" failed during
container deletion (EBUSY), after removal of "ID" has succeeded. This
caused the container delete operation to fail, and on the next delete
attempt the removal of "ID" failed immediately with "does not exist".

Ideally we should not fail the ID-init removal, but its also non-ideal
to allow a state where the container is half-removed and we cannot
make progress deleting the container. So, we silently ignore not-exist
errors on device removal.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
<entry>
<title>devmapper: Increase sleep times and unlock while sleeping</title>
<updated>2014-03-18T14:30:53+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-03-06T17:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=39dbaa08dc3745cf02892ee32e3d9736b53a2aa5'/>
<id>39dbaa08dc3745cf02892ee32e3d9736b53a2aa5</id>
<content type='text'>
We've seen some cases in the wild where waiting for unmount/deactivate
of devmapper devices taking a long time (several seconds). So, we increase
the sleeps to 10 seconds before we timeout. For instance:

https://github.com/dotcloud/docker/issues/4389

But, in order to not keep other processes blocked we unlock the global
dm lock while waiting to allow other devices to continue working.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We've seen some cases in the wild where waiting for unmount/deactivate
of devmapper devices taking a long time (several seconds). So, we increase
the sleeps to 10 seconds before we timeout. For instance:

https://github.com/dotcloud/docker/issues/4389

But, in order to not keep other processes blocked we unlock the global
dm lock while waiting to allow other devices to continue working.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
<entry>
<title>devmapper: Add per-device lock</title>
<updated>2014-03-18T14:30:28+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-03-06T17:14:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=d70e20cddd99de9310d902fd5755633222ff74fc'/>
<id>d70e20cddd99de9310d902fd5755633222ff74fc</id>
<content type='text'>
We currently use a global lock to protect global data (like the
Devices map) as well as device data itself and access to
(non-threadsafe) libdevmapper.

This commit also adds a per-device lock, which will allow per-device
operations to temporarily release the global lock while e.g. waiting.
The per-device lock will make sure that nothing else accesses that
device while we're operating on it.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We currently use a global lock to protect global data (like the
Devices map) as well as device data itself and access to
(non-threadsafe) libdevmapper.

This commit also adds a per-device lock, which will allow per-device
operations to temporarily release the global lock while e.g. waiting.
The per-device lock will make sure that nothing else accesses that
device while we're operating on it.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in devmapper driver_test</title>
<updated>2014-03-07T17:20:25+00:00</updated>
<author>
<name>Paul Morie</name>
<email>pmorie@gmail.com</email>
</author>
<published>2014-03-07T17:20:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=b3e7df48dfbf3d2300877d1e524132624e9493c3'/>
<id>b3e7df48dfbf3d2300877d1e524132624e9493c3</id>
<content type='text'>
Docker-DCO-1.1-Signed-off-by: Paul Morie &lt;pmorie@gmail.com&gt; (github: pmorie)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Docker-DCO-1.1-Signed-off-by: Paul Morie &lt;pmorie@gmail.com&gt; (github: pmorie)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4062 from alexlarsson/clean-shutdown</title>
<updated>2014-02-13T18:45:03+00:00</updated>
<author>
<name>Guillaume J. Charmes</name>
<email>guillaume@docker.com</email>
</author>
<published>2014-02-13T18:45:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=9997d0c9ed031465b7bc6e4df6f62bcac3758305'/>
<id>9997d0c9ed031465b7bc6e4df6f62bcac3758305</id>
<content type='text'>
devmapper: Fix shutdown warnings</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
devmapper: Fix shutdown warnings</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4056 from alexlarsson/fix-devmapper-test</title>
<updated>2014-02-13T13:06:50+00:00</updated>
<author>
<name>unclejack</name>
<email>unclejack@users.noreply.github.com</email>
</author>
<published>2014-02-13T13:06:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=47df7a360ad10660639af4bef32afaa29b16ee1c'/>
<id>47df7a360ad10660639af4bef32afaa29b16ee1c</id>
<content type='text'>
devicemapper: Fix tests on fedora</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
devicemapper: Fix tests on fedora</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4055 from alexlarsson/remove-devmapper-dirs</title>
<updated>2014-02-11T22:05:56+00:00</updated>
<author>
<name>Michael Crosby</name>
<email>michael@crosbymichael.com</email>
</author>
<published>2014-02-11T22:05:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=a66124ec6aab77ed984896773c9d37b7b343c47f'/>
<id>a66124ec6aab77ed984896773c9d37b7b343c47f</id>
<content type='text'>
devmapper: Remove directory when removing devicemapper device</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
devmapper: Remove directory when removing devicemapper device</pre>
</div>
</content>
</entry>
<entry>
<title>devmapper: Remove byHash hack</title>
<updated>2014-02-11T12:02:00+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-02-11T11:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=6128dcea4a9bbe808baba4e18c9c4fee3a265532'/>
<id>6128dcea4a9bbe808baba4e18c9c4fee3a265532</id>
<content type='text'>
We no longer pass "pool" anywhere that uses byHash() per the last
commit, so we can now remove this hack.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We no longer pass "pool" anywhere that uses byHash() per the last
commit, so we can now remove this hack.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
<entry>
<title>devmapper: Fix shutdown warnings</title>
<updated>2014-02-11T11:47:59+00:00</updated>
<author>
<name>Alexander Larsson</name>
<email>alexl@redhat.com</email>
</author>
<published>2014-02-11T11:47:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker.git/commit/?id=eab270395e5b47b16a41c54ec6e1427f8144bffc'/>
<id>eab270395e5b47b16a41c54ec6e1427f8144bffc</id>
<content type='text'>
Shutdown contains debug warnings like:

[debug] deviceset.go:699 [deviceset docker-0:33-17945897] waitRemove(/dev/mapper/docker-0:33-17945897-pool)
[debug] deviceset.go:380 libdevmapper(3): libdm-common.c:552 (-1) Device /dev/mapper/docker-0:33-17945897-pool not found

This is because shutdown is using removeDeviceAndWait() to remove the pool device and the
wait part fails because the pool is gone.

We fix this by adding a pool specific removal function which avoids all the trickiness of the
normal remove.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Shutdown contains debug warnings like:

[debug] deviceset.go:699 [deviceset docker-0:33-17945897] waitRemove(/dev/mapper/docker-0:33-17945897-pool)
[debug] deviceset.go:380 libdevmapper(3): libdm-common.c:552 (-1) Device /dev/mapper/docker-0:33-17945897-pool not found

This is because shutdown is using removeDeviceAndWait() to remove the pool device and the
wait part fails because the pool is gone.

We fix this by adding a pool specific removal function which avoids all the trickiness of the
normal remove.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson &lt;alexl@redhat.com&gt; (github: alexlarsson)
</pre>
</div>
</content>
</entry>
</feed>
