mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 19:51:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 "
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user