svn commit: r282565 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Wed May 6 19:47:32 UTC 2015
Author: mav
Date: Wed May 6 19:47:31 2015
New Revision: 282565
URL: https://svnweb.freebsd.org/changeset/base/282565
Log:
Handle EDQUOT backend storage errors same as ENOSPC.
MFC after: 1 week
Modified:
head/sys/cam/ctl/ctl_backend_block.c
Modified: head/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- head/sys/cam/ctl/ctl_backend_block.c Wed May 6 18:16:27 2015 (r282564)
+++ head/sys/cam/ctl/ctl_backend_block.c Wed May 6 19:47:31 2015 (r282565)
@@ -521,7 +521,7 @@ ctl_be_block_biodone(struct bio *bio)
if (beio->num_errors > 0) {
if (error == EOPNOTSUPP) {
ctl_set_invalid_opcode(&io->scsiio);
- } else if (error == ENOSPC) {
+ } else if (error == ENOSPC || error == EDQUOT) {
ctl_set_space_alloc_fail(&io->scsiio);
} else if (beio->bio_cmd == BIO_FLUSH) {
/* XXX KDM is there is a better error here? */
@@ -738,7 +738,7 @@ ctl_be_block_dispatch_file(struct ctl_be
ctl_scsi_path_string(io, path_str, sizeof(path_str));
printf("%s%s command returned errno %d\n", path_str,
(beio->bio_cmd == BIO_READ) ? "READ" : "WRITE", error);
- if (error == ENOSPC) {
+ if (error == ENOSPC || error == EDQUOT) {
ctl_set_space_alloc_fail(&io->scsiio);
} else
ctl_set_medium_error(&io->scsiio);
@@ -895,7 +895,7 @@ ctl_be_block_dispatch_zvol(struct ctl_be
* return the I/O to the user.
*/
if (error != 0) {
- if (error == ENOSPC) {
+ if (error == ENOSPC || error == EDQUOT) {
ctl_set_space_alloc_fail(&io->scsiio);
} else
ctl_set_medium_error(&io->scsiio);
More information about the svn-src-head
mailing list