]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm thin: return ENOSPC instead of EIO when error_if_no_space enabled
authorMike Snitzer <snitzer@redhat.com>
Thu, 22 May 2014 18:32:51 +0000 (14:32 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Jun 2014 17:44:08 +0000 (13:44 -0400)
commitaf91805a497d3aa694704172b41ba953be3738ed
tree44c0ba130abac57125d7aff148b07d0f2d3e3f0b
parente7a3e871d8954c636b6cd2db7c7ece7ffe405986
dm thin: return ENOSPC instead of EIO when error_if_no_space enabled

Update the DM thin provisioning target's allocation failure error to be
consistent with commit a9d6ceb8 ("[SCSI] return ENOSPC on thin
provisioning failure").

The DM thin target now returns -ENOSPC rather than -EIO when
block allocation fails due to the pool being out of data space (and
the 'error_if_no_space' thin-pool feature is enabled).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-By: Joe Thornber <ejt@redhat.com>
drivers/md/dm-bio-prison.c
drivers/md/dm-bio-prison.h
drivers/md/dm-thin.c