~blake-rouse/curtin/uefi-clear-reorder

  • Committer: Ryan Harper
  • Date: 2017-04-24 17:56:04 UTC
  • mfrom: (485.1.10 trunk.nvme_bcache)
  • Revision ID: ryan.harper@canonical.com-20170424175604-u6rms6dyh8gk8ihi
clear-holders: make bcache handler wait for device shutdown

Clear-holder's bcache shutdown handler does not wait for devices owned by
bcache driver to be released before returning. On sufficiently fast
systems (and with multiple cpus) the time for bcache to release the
backing devices may occur slower than the time it takes for curtin to
start attempting to wipe partition data on a backing device. This results
in an IO error due to curtin asserting exclusive access to a device for
wiping.

This series introduces some additional logic in the bcache shutdown
handler by testing that the bcache devices are removed before returning
from the handler.

If the underlying devices are not released, the handler raises an
exception.

Fixes: LP:#1680409
Filename Latest Rev Last Changed Committer Comment Size
..
bin 7 11 years ago Scott Moser initial stub multi-command Diff
curtin 7 11 years ago Scott Moser initial stub multi-command Diff
debian 9 11 years ago Scott Moser add initial packaging Diff
doc 2 11 years ago Scott Moser very rough initial doc using sphynx. Diff
examples 45 11 years ago Scott Moser add examples dir Diff
helpers 25 11 years ago Scott Moser block-meta simple now partitions with 'partition' Diff
tests 8 11 years ago Scott Moser make test (with 1 test) Diff
tools 8 11 years ago Scott Moser make test (with 1 test) Diff
.bzrignore 368 8 years ago Ryan Harper Enable python coverage for unittests make check 33 bytes Diff Download File
LICENSE 6 11 years ago Scott Moser add LICENSE file 33.7 KB Diff Download File
Makefile 450.2.1 7 years ago Josh Powers Remove style checking during buil and add latest s 1.2 KB Diff Download File
README 1 11 years ago Scott Moser initial README 163 bytes Diff Download File
requirements.txt 380.4.1 8 years ago Scott Moser fix dependencies This fixes up dependencies to be 16 bytes Diff Download File
setup.py 387.6.4 8 years ago Ryan Harper Move curtin VERSION into module; use in setup.py, 775 bytes Diff Download File
test-requirements.txt 368 8 years ago Ryan Harper Enable python coverage for unittests make check 28 bytes Diff Download File
tox.ini 464 7 years ago Scott Moser tox: do not bother with pep8 from trusty in trusty 2.8 KB Diff Download File