~curtin-dev/curtin/trunk

  • Committer: Ryan Harper
  • Date: 2017-11-02 15:48:45 UTC
  • mfrom: (539.1.3 trunk.bcache-toctou-v2)
  • Revision ID: ryan.harper@canonical.com-20171102154845-r7rxc2x631hf4emz
clear_holders: bcache log IO/OS exceptions but do not raise

While stopping bcache devices, curtin races with the kernel w.r.t how
quickly it removes the bcache device (and the sysfs tree related).
The result is that as curtin attempts to write "1" into the sysfs tree
of bcache device to stop it, the range of errors changes depending on
when we race with the kernel asynchronously removing the sysfs path.
Therefore we log the exception errno we got but do not re-raise. The
the calling process is watching whether the same sysfs path is being
removed; if the bcache device fails to go away then curtin will have a
log of the exceptions to debug.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 7 10 years ago Scott Moser initial stub multi-command Diff
curtin 7 10 years ago Scott Moser initial stub multi-command Diff
debian 9 10 years ago Scott Moser add initial packaging Diff
doc 2 11 years ago Scott Moser very rough initial doc using sphynx. Diff
examples 45 10 years ago Scott Moser add examples dir Diff
helpers 25 10 years ago Scott Moser block-meta simple now partitions with 'partition' Diff
tests 8 10 years ago Scott Moser make test (with 1 test) Diff
tools 8 10 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 10 years ago Scott Moser add LICENSE file 33.7 KB Diff Download File
Makefile 488.1.9 7 years ago Chad Smith separate doc-deps into new target. Collapse depend 1.3 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 529.1.1 6 years ago Scott Moser setup.py: fix to allow installation into a virtual 1020 bytes Diff Download File
test-requirements.txt 526.3.5 6 years ago Ryan Harper Drop systemd-python from test-requirement; tested 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