diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-03-10 11:31:35 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-03-11 16:15:22 -0500 |
commit | c3667cc6190469d2c7196c2d4dc75fcb33a0814f (patch) | |
tree | f12fa8cf089e8cccb124731ec5c614a5707b7a8a /tools/perf/.gitignore | |
parent | 843f0f2e8f5213a3559b6a21c0e9fc35dcb08f60 (diff) | |
download | linux-c3667cc6190469d2c7196c2d4dc75fcb33a0814f.tar.bz2 |
dm thin: consistently return -ENOSPC if pool has run out of data space
Commit 0a927c2f02 ("dm thin: return -ENOSPC when erroring retry list due
to out of data space") was a step in the right direction but didn't go
far enough.
Add a new 'out_of_data_space' flag to 'struct pool' and set it if/when
the pool runs of of data space. This fixes cell_error() and
error_retry_list() to not blindly return -EIO.
We cannot rely on the 'error_if_no_space' feature flag since it is
transient (in that it can be reset once space is added, plus it only
controls whether errors are issued, it doesn't reflect whether the
pool is actually out of space).
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/.gitignore')
0 files changed, 0 insertions, 0 deletions