scst, qla2x00t: Return ENOTSUPP instead of ENOSYS

ENOSYS must only be used inside system calls.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6648 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-10 02:01:57 +00:00
parent f606f9ef04
commit 99d47d5ce2
3 changed files with 4 additions and 4 deletions

View File

@@ -1594,7 +1594,7 @@ qla2x00_process_vendor_specific(struct fc_bsg_job *bsg_job)
default:
bsg_job->reply->result = (DID_ERROR << 16);
bsg_job->job_done(bsg_job);
return -ENOSYS;
return -ENOTSUPP;
}
}

View File

@@ -7612,7 +7612,7 @@ static int vdisk_create_bioset(struct scst_vdisk_dev *virt_dev)
/* The same, pool size doesn't really matter */
res = bioset_integrity_create(virt_dev->vdisk_bioset, 2);
#else
res = -ENOSYS;
res = -ENOTSUPP;
#endif
if (res != 0) {
PRINT_ERROR("Failed to create integrity bioset "

View File

@@ -1399,7 +1399,7 @@ static ssize_t scst_proc_scsi_tgt_write(struct file *file,
TRACE_ENTRY();
if (vtt->tgtt->write_proc == NULL) {
res = -ENOSYS;
res = -ENOTSUPP;
goto out;
}
@@ -1554,7 +1554,7 @@ static ssize_t scst_proc_scsi_dev_handler_write(struct file *file,
TRACE_ENTRY();
if (dev_type->write_proc == NULL) {
res = -ENOSYS;
res = -ENOTSUPP;
goto out;
}