vhost-scsi: return -ENOENT when no matching tcm_vhost_tpg found
Subsystems (5)
PATCH 1/1 vhost-scsi: return -ENOENT when no matching tcm_vhost_tpg found
ioctl for VHOST_SCSI_SET_ENDPOINT report file exist errori, when I forget to set it correctly in configfs, make user confused. Actually it fail to find a matching one, so change the error value.
--- drivers/vhost/scsi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/vhost/scsi.c +1 -1
@@ -1219,7 +1219,7 @@ static int vhost_scsi_set_endpoint( } ret =0 ; }else { - ret = -EEXIST ; + ret = -ENOENT ; }/*
Signature · 1 line
1.7.1
Quoted 5 lines · Wenchao Xia
ioctl for
VHOST_SCSI_SET_ENDPOINTreport file exist errori, when I forget to set it correctly in configfs, make user confused. Actually it fail to find a matching one, so change the error value.Signed-off-by Wenchao Xia <[email protected]>
BTW, It would be nice to print more informative info in qemu when wwpn is not available as well.
Quoted 20 lines
--- drivers/vhost/scsi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/vhost/scsi.c +1
-1@@ -1219,7 +1219,7 @@ static int vhost_scsi_set_endpoint( } ret =0 ; }else { - ret = -EEXIST ; + ret = -ENOENT ; }/* Signature · 1 line
1.7.1
Signature · 1 line
Asias
cc to Greg for 3.9.
Quoted 33 lines · Wenchao Xia
Quoted 5 lines
ioctl for
VHOST_SCSI_SET_ENDPOINTreport file exist errori, when I forget to set it correctly in configfs, make user confused. Actually it fail to find a matching one, so change the error value.Signed-off-by Wenchao Xia <[email protected]>Acked-by Asias He <[email protected]>BTW, It would be nice to print more informative info in qemu when wwpn is not available as well.
Quoted 20 lines
--- drivers/vhost/scsi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/vhost/scsi.c +1
-2@@ -1219,7 +1219,7 @@ static int vhost_scsi_set_endpoint( } ret =0 ; }else { - ret = -EEXIST ; + ret = -ENOENT ; }/* -- 1.7.1
Quoted 1 line · wenchao
cc to Greg for 3.9.
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.
</formletter>
Quoted 1 line · wenchao
cc to Greg for 3.9.
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.
</formletter>