[stgt] [patch] v2 - Remove a misleading error message.
Mark Harvey
markh794 at gmail.com
Wed Oct 29 02:06:20 CET 2008
I have no personal preference to wording hence am submitting two different patches.
Cheers
Mark
>From 9a3830f15b0b69be7ceb6fb554b09d5e6bd119a2 Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Wed, 22 Oct 2008 07:38:57 +1100
Subject: Remove misleading error if trying to use 'device-type=tape'
Correct device type is 'ssc' not 'tape'
Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
usr/tgtadm.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index 836efaa..9dbfbff 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -329,10 +329,7 @@ static int str_to_device_type(char *str)
{
if (!strcmp(str, "disk"))
return TYPE_DISK;
- else if (!strcmp(str, "tape")) {
- eprintf("type emulation isn't supported yet\n");
- exit(EINVAL);
- } else if (!strcmp(str, "cd"))
+ else if (!strcmp(str, "cd"))
return TYPE_MMC;
else if (!strcmp(str, "changer"))
return TYPE_MEDIUM_CHANGER;
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list